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