Environment environment = (Environment) getValue();
EnvironmentType environmentType = buildEnvironmentType(environment);
XmlOptions xmlOptions = new XmlOptions();
xmlOptions.setSaveSyntheticDocumentElement(QNAME);
xmlOptions.setSavePrettyPrint();
return environmentType.xmlText(xmlOptions);
}
public void setAsText(String text) {
try {
EnvironmentDocument environmentDocument = EnvironmentDocument.Factory.parse(text);