code: public static Collection<Object> filterByJavaBeanPageProperty(ArrayList<Object> aList,
  	String aPropertyName, int fromIndex, int toIndex)
  	{
  
  		logger.debug("In Organizer filtering: " + aPropertyName);
  		try
  		{
  			if (aList == null)
  				throw new IllegalArgumentException(
  				"aCollection required in filterByJavaBeanProperty");
  
  			ArrayList<Object> filteredList = new ArrayList<Object>(aList.size());
  
  			Object bean = null;
  			Object beanPropertyValue = null;
  			for (Iterator<Object> i = aList.iterator(); i.hasNext();)
  			{
  				try
  				{
  					bean = i.next();
  					beanPropertyValue = JavaBean.getProperty(bean,
  					aPropertyName);
  					int beanPropIntVal = Integer.parseInt(
  					beanPropertyValue.toString());
  					// logger.debug("Got propertyValue: " + beanPropertyValue +
  					// " for propertyName: " + beanPropIntVal);
  					if (
  						(fromIndex <= beanPropIntVal)
  						&& (beanPropIntVal <= toIndex))
  						{
  						filteredList.add(bean);
  						// logger.debug("Organizer added bean");
  					}
  				}
  				catch (Exception e)
  				{
  					logger.debug("error occured : " + e);
  				}
  			}
  			filteredList.trimToSize();
  			return filteredList;
  		}
  		catch (Exception e)
  		{
  			throw new SystemException(e);
  		}
  	}
docs: -----------------------------------------