code: public Entity newEntity(String id, List<Span<Term>> references) {
      idManager.updateCounter(AnnotationType.ENTITY, id);
  	Entity newEntity = new Entity(id, references);
  	annotationContainer.add(newEntity, Layer.ENTITIES, AnnotationType.ENTITY);
  	return newEntity;
      }
docs: Creates an Entity object to load an existing entity. It receives the ID as an argument. The entity is added to the document object.
  @param id the ID of the named entity.
  @param type entity type. 8 values are posible: Person, Organization, Location, Date, Time, Money, Percent, Misc.
  @param references it contains one or more span elements. A span can be used to reference the different occurrences of the same named entity in the document. If the entity is composed by multiple words, multiple target elements are used.
  @return a new named entity.