// XmlObject obj = XmlObject.Factory.parse(
// content.replaceFirst( "<(([a-z]+:)?)fault ",
// "<$1representation " ), options );
XmlObject obj = XmlUtils.createXmlObject(
content.replaceFirst("<(([a-z]+:)?)fault ", "<$1representation "), options);
RepresentationDocument representation = (RepresentationDocument) obj
.changeType(RepresentationDocument.type);
addRepresentation(response, restMethod, representation.getRepresentation());
} catch (XmlException e) {
}
}
}
}