generator.setParameter(StatusConstants.TRANSFER_ID, transferId);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
Status status = (Status) result;
StatusResource statusResource =
(StatusResource) Utils.getResource(ResourceType.STATUS, status);
resourceList.add(statusResource);
}
}