// Note: the second argument to List.subList() is exclusive of the\r
// item at its index position, reflecting the zero-index nature of\r
// the list.\r
- List<AuthorityRefDocList.AuthorityRefDocItem> currentPageList = list.subList(startIndex, endIndex);\r
+ List<AuthorityRefDocList.AuthorityRefDocItem> currentPageList =\r
+ new ArrayList<AuthorityRefDocList.AuthorityRefDocItem>(list.subList(startIndex, endIndex));\r
wrapperList.getAuthorityRefDocItem().clear();\r
wrapperList.getAuthorityRefDocItem().addAll(currentPageList);\r
commonList.setItemsInPage(currentPageList.size());\r