}
return results.toArray(new DocData[0]);
}
public DocData[] findResource(String resourceNameQuery) throws XregistryException {
FindResourceDocument document = FindResourceDocument.Factory.newInstance();
document.addNewFindResource().setResourceNameQuery(resourceNameQuery);
FindResourceResponseDocument responseDocument = proxy.findResource(document);
ResourceData[] resourceData = responseDocument.getFindResourceResponse().getResourceArray();
if(resourceData == null){
return null;