code: public Collection<Entity> getEntitiesByConfidenceValue(final Double confidenceValue) {
  
          Collection<EntityAnnotation> sortedEas = getEntityAnnotationsByConfidenceValue(confidenceValue);
  
          return Collections2.transform(sortedEas,
                  new Function<EntityAnnotation, Entity>() {
                      @Override
                      public Entity apply(final EntityAnnotation ea) {
                          return ea.getEntityReference();
                      }
                  }
          );
      }
docs: Returns a {@link Collection} of {@link Entity}s for which associated {@link EntityAnnotation}s has a confidence value
  greater than or equal to the value passed by parameter
  
  @param confidenceValue Threshold confidence value
  @return