code: public Entity createEntity(String id, String type, List<List<Term>> references) {
  	List<Span<Term>> spanReferences = new ArrayList<Span<Term>>();
  	for (List<Term> list : references) {
  	    spanReferences.add(this.list2Span(list));
  	}
  	Entity entity = this.newEntity(id, spanReferences);
  	entity.setType(type);
  	return entity;
      }
docs: Deprecated