List<OrganizationUnit> researchers = applicationService
.getPaginateList(OrganizationUnit.class, sort,
"desc".equals(dir), page, pagesize);
LinkedList<OrganizationUnitDTO> objectList = new LinkedList<OrganizationUnitDTO>();
for(OrganizationUnit r : researchers) {
OrganizationUnitDTO rpd = new OrganizationUnitDTO();
rpd.setId(r.getId());
rpd.setSourceID(r.getSourceID());
rpd.setUuid(r.getUuid());
rpd.setStatus(r.getStatus());
rpd.setName(r.getName());
rpd.setOrganizationUnit(r);
if((r.getId()).equals(id)) {
objectList.addFirst(rpd);
}
else {
objectList.add(rpd);