protected void addEntityFromIndexHits ( EntityMetadata m , List < Object > entities , IndexHits < Node > hits ) { for ( Node node : hits ) { if ( node != null ) { Object entity = getEntityWithAssociationFromNode ( m , node ) ; if ( entity != null ) { entities . add ( entity ) ; } } } }
Adds the entity from index hits .