public List<String> storePagination(String sanId, int pageSize,
			Map<String, Collection<?>> pageKeysRegion,
			Collection<String> keys)
	{
		if(keys == null || keys.isEmpty())
			return null;
		
		//add to pages
		 List<Collection<String>> pagesCollection = Organizer.toPages(keys, pageSize);

	
		 String key = null;
		 int pageIndex = 1;
		 ArrayList<String> pageKeys = new ArrayList<String>(10);
		 for (Collection<String> page : pagesCollection)
		{
			 //store in region
			 key = new StringBuilder().append(sanId).append("-").append(pageIndex++).toString();
			 
			 pageKeysRegion.put(key, page);
			 
			 pageKeys.add(key);
		}
		 
		 pageKeys.trimToSize();
		return pageKeys;
	}
public List < String > storePagination ( String sanId , int pageSize , Map < String , Collection < ? > > pageKeysRegion , Collection < String > keys ) { if ( keys == null || keys . isEmpty ( ) ) return null ; List < Collection < String > > pagesCollection = Organizer . toPages ( keys , pageSize ) ; String key = null ; int pageIndex = 1 ; ArrayList < String > pageKeys = new ArrayList < String > ( 10 ) ; for ( Collection < String > page : pagesCollection ) { key = new StringBuilder ( ) . append ( sanId ) . append ( "-" ) . append ( pageIndex ++ ) . toString ( ) ; pageKeysRegion . put ( key , page ) ; pageKeys . add ( key ) ; } pageKeys . trimToSize ( ) ; return pageKeys ; }
------------------------------------------------