{
String content = response.getContentAsString().trim();
if( !StringUtils.hasContent( content ) )
return null;
JSON json = JSONSerializer.toJSON( content );
XMLSerializer serializer = new XMLSerializer();
serializer.setTypeHintsEnabled( false );
serializer.setRootName( HttpUtils.isErrorStatus( response.getStatusCode() ) ? "Fault" : "Response" );
URL url = response.getURL();
serializer.setNamespace( "", url.getProtocol() + "://" + url.getHost() + url.getPath() );