code: 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);
  
                  }
              }
          }
      }
docs: Adds the entity from index hits.
  
  @param m
  the m
  @param entities
  the entities
  @param hits
  the hits