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);
}
public void saveBytesToFile(byte[] bytes, String filename) throws IOException {
FileOutputStream fos = new FileOutputStream(filename);