// The client never knows where the policies are stored, they are
// always accessed through this class.
client.setPolicies(null);
StringWriter stringWriter = new StringWriter();
ProjectConfigurationWriter writer = new ProjectConfigurationWriter();
try {
writer.writeProject(client, stringWriter);
} catch (JiBXException e) {
throw new ServletException(e);
}
String clientAsString = stringWriter.toString();
return clientAsString;