public static void collectFrom(List<Selector> selectors, Collection<?> results) {
    """
	Performs collections from the results.
	@param selectors list of selectors
	@param results results we are selecting from
	@return map of selected items per row
    """

        if (results.size() == 0) {
            return;
        }
        Map<String, FieldAccess> fields =  BeanUtils.getFieldsFromObject(results.iterator().next());

        collectFrom(selectors, results, fields);
    }
public static void collectFrom(List<Selector> selectors, Collection<?> results) {

        if (results.size() == 0) {
            return;
        }
        Map<String, FieldAccess> fields =  BeanUtils.getFieldsFromObject(results.iterator().next());

        collectFrom(selectors, results, fields);
    }
public static void collectFrom ( List < Selector > selectors , Collection < ? > results ) { if ( results . size ( ) == 0 ) { return ; } Map < String , FieldAccess > fields = BeanUtils . getFieldsFromObject ( results . iterator ( ) . next ( ) ) ; collectFrom ( selectors , results , fields ) ; }
Performs collections from the results.
@param selectors list of selectors
@param results results we are selecting from
@return map of selected items per row
Performs collections from the results .