code: public Entity newEntity(QualifiedName id, Collection<Attribute> attributes) {
  	Entity res = newEntity(id);
  	setAttributes(res, attributes);
  	return res;
      }
docs: Creates a new {@link Entity} with provided identifier and attributes
  @param id a {@link QualifiedName} for the entity
  @param attributes a collection of {@link Attribute} for the entity
  @return an object of type {@link Entity}