boon/src/main/java/org/boon/criteria/Selector.java
public static Selector selectAsTemplate( final String alias,
                                     final String  template,
                                     final Template transform) {
        return new Selector( alias, alias ) {

            @Override
            public void handleRow( int index, Map<String, Object> row,
                                   Object item, Map<String, FieldAccess> fields ) {

                if (!path && fields!=null) {
                    row.put( this.name, transform.replace(template, item) );
                } else {
                    row.put( alias, transform.replace(template, item)  );
                }
            }

            @Override
            public void handleStart( Collection<?> results ) {
            }

            @Override
            public void handleComplete( List<Map<String, Object>> rows ) {
            }
        };
    }
public static Selector selectAsTemplate( final String alias,
                                     final String  template,
                                     final Template transform) {
        return new Selector( alias, alias ) {

            @Override
            public void handleRow( int index, Map<String, Object> row,
                                   Object item, Map<String, FieldAccess> fields ) {

                if (!path && fields!=null) {
                    row.put( this.name, transform.replace(template, item) );
                } else {
                    row.put( alias, transform.replace(template, item)  );
                }
            }

            @Override
            public void handleStart( Collection<?> results ) {
            }

            @Override
            public void handleComplete( List<Map<String, Object>> rows ) {
            }
        };
    }
Selects but allows having a different alias for the output.
\  * @param alias name that the value will be selected as.
@param transform Function that allows you to convert from an object into another object
@return selector