@Override
public PageList<ContentServiceRequest> fetchPage(PageControl pc) {
Subject subject = EnterpriseFacesContextUtility.getSubject();
Resource requestResource = EnterpriseFacesContextUtility.getResourceIfExists();
ContentUIManagerLocal manager = LookupUtil.getContentUIManager();
if (requestResource == null) {
requestResource = resource; // request not associated with a resource - use the resource we used before
} else {
resource = requestResource; // request switched the resource this UI bean is using
}
PageList<ContentServiceRequest> pageList = manager.getContentRequestsWithStatus(subject, requestResource
.getId(), ContentRequestStatus.IN_PROGRESS, pc);
return pageList;
}