if (permittedServiceDefs.size() > 0) {
populatePageList(permittedServiceDefs, startIndex, pageSize, retList);
}
return retList;
}
<BUG>private void populatePageList(List<XXServiceDef> xxObjList, int startIndex, int pageSize,
</BUG>
RangerServiceDefList retList) {
List<RangerServiceDef> onePageList = new ArrayList<RangerServiceDef>();
for (int i = startIndex; i < pageSize + startIndex && i < xxObjList.size(); i++) {

if (permittedServiceDefs.size() > 0) {
populatePageList(permittedServiceDefs, startIndex, pageSize, retList);
}
return retList;
}
private void populatePageList(List<T> xxObjList, int startIndex, int pageSize,
RangerServiceDefList retList) {
List<RangerServiceDef> onePageList = new ArrayList<RangerServiceDef>();
for (int i = startIndex; i < pageSize + startIndex && i < xxObjList.size(); i++) {
