log.info("Request Received " + input.xmlText());
List<DocData> hostList = registryImpl.findHosts(findUserDN(), input.getFindHosts()
.getHostNameSearchStr());
FindHostsResponseDocument app2HostResDoc = FindHostsResponseDocument.Factory.newInstance();
FindHostsResponse hostsRes = app2HostResDoc.addNewFindHostsResponse();
if (hostList != null) {
for (DocData hostdata : hostList) {
HostDescData result = hostsRes.addNewResults();
copyResourceData(hostdata, result);
}
}
log.info("Response Sent " + app2HostResDoc.xmlText());
return app2HostResDoc;