question: public static String swapXMLProperty ( String xml , String propertyName , String propertyXML ) { String ccHead = "<cc name=\"" + propertyName + "\"" ; int start = xml . indexOf ( ccHead ) ; if ( start != - 1 ) { start = xml . lastIndexOf ( PropertyTemplate . PROPERTY_START_OPEN_TAG , start ) ; int end = xml . indexOf ( "</property>" , start ) ; if ( end != - 1 ) { xml = xml . substring ( 0 , start ) + propertyXML + xml . substring ( end + 11 ) ; } } return xml ; }
target:  Returns a replaced XML. This method replaces a property element.