List<DocData> serviceInstanceList = registryImpl.findServiceInstance(findUserDN(), input
.getFindServiceInstance().getServiceQnameSearchStr());
FindServiceInstanceResponseDocument findServiceInstanceResponseDocument = FindServiceInstanceResponseDocument.Factory
.newInstance();
FindServiceInstanceResponse findServiceDescResponse = findServiceInstanceResponseDocument
.addNewFindServiceInstanceResponse();
if (serviceInstanceList != null) {
for (DocData service : serviceInstanceList) {
WsdlData wsdlData = findServiceDescResponse.addNewServiceInstance();
copyResourceData(service, wsdlData);
}
}
log.info("Response Sent " + findServiceInstanceResponseDocument.xmlText());
return findServiceInstanceResponseDocument;