<!-- enable the availability-service for in-memory -->
  <xsl:template match="availability-service">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:attribute name="availability-enabled">true</xsl:attribute>
      <xsl:apply-templates select="node()|@*"/>
    </xsl:copy>
  </xsl:template>

  <xsl:template match="web-container-availability">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:attribute name="persistence-type">replicated</xsl:attribute>
      <xsl:copy-of select="node()"/>
    </xsl:copy>
  </xsl:template>

  <xsl:template match="ejb-container-availability">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:attribute name="sfsb-ha-persistence-type">replicated</xsl:attribute>
      <xsl:copy-of select="node()"/>
    </xsl:copy>
  </xsl:template>