List<ResearcherPage> researchers = applicationService
.getPaginateList(ResearcherPage.class, sort,
"desc".equals(dir), page, pagesize);
LinkedList<ResearcherPageDTO> objectList = new LinkedList<ResearcherPageDTO>();
for(ResearcherPage r : researchers) {
ResearcherPageDTO rpd = new ResearcherPageDTO();
rpd.setId(r.getId());
rpd.setUuid(r.getUuid());
rpd.setSourceID(r.getSourceID());
rpd.setFullName(r.getFullName());
rpd.setEpersonID(r.getEpersonID());
rpd.setStatus(r.getStatus());
rpd.setRp(r);
if((r.getId()).equals(id)) {
objectList.addFirst(rpd);
}
else {
objectList.add(rpd);