code: protected D createModelWithId(Object id, T entity) {
  		return createModelWithId(id, entity, new Object[0]);
  	}
docs: Creates a new resource with a self link to the given id.
  
  @param entity must not be {@literal null}.
  @param id must not be {@literal null}.
  @return