public static String appendXMLProperty(String xml,String propertyXML){
  int idx=xml.lastIndexOf(PropertyTemplate.SECTION_END_TAG);
  if (idx != -1) {
    xml=xml.substring(0,idx) + propertyXML + xml.substring(idx);
  }
  return xml;
}

public static String appendXMLProperty ( String xml , String propertyXML ) { int idx = xml . lastIndexOf ( PropertyTemplate . SECTION_END_TAG ) ; if ( idx != - 1 ) { xml = xml . substring ( 0 , idx ) + propertyXML + xml . substring ( idx ) ; } return xml ; }
returns an altered xml . this method appends a property element .
