class ResponseHandler {

    void addResultsToNode( final RootNode rootNode,
        final List<BaseDimensionalItemObject> dimensionalItemsFound, final List<String> fields )
    {
        final CollectionNode collectionNode = fieldFilterService.toCollectionNode( BaseDimensionalItemObject.class,
                new FieldFilterParams( dimensionalItemsFound, fields ) );
        collectionNode.setName( "dataItems" );
        rootNode.addChild( collectionNode );
    }

      ResponseHandler( final QueryService queryService, final LinkService linkService,
        final FieldFilterService fieldFilterService, final Environment environment, final CacheProvider cacheProvider );

}