public App2HostsResponseDocument app2Hosts(App2HostsDocument input) throws XregistryException {
log.info("Request Received " + input.xmlText());
String[] hostList = registryImpl.app2Hosts(findUserDN(), input.getApp2Hosts().getAppName());
App2HostsResponseDocument app2HostResDoc = App2HostsResponseDocument.Factory.newInstance();
App2HostsResponse app2HostRes = app2HostResDoc.addNewApp2HostsResponse();
if (hostList != null) {
for (String host : hostList) {
app2HostRes.addNewHost().setStringValue(host);
}
}
log.info("Response:" + app2HostResDoc.xmlText());
return app2HostResDoc;
}