public PageList<Resource> findResources(String string) {
if (remoteClient == null) {
throw new IllegalStateException("The findResources() method requires a connection to the RHQ server.");
}
ResourceManagerRemote resourceManager = remoteClient.getProxy(ResourceManagerRemote.class);
ResourceCriteria criteria = new ResourceCriteria();
criteria.addFilterName(string);
criteria.clearPaging();//disable paging as the code assumes all the results will be returned.
return resourceManager.findResourcesByCriteria(getSubjectFromEngine(), criteria);
}