code: public <T> Key<T> manualRefToKey(final Class<T> type, final Object id) {
          return id == null ? null : new Key<T>(type, getCollectionName(type), id);
      }
docs: Creates a Key for a type and an ID value
  
  @param type the Class of the entity
  @param id   the ID value
  @param <T>  the type of the entity
  @return the Key