code: @Deprecated
      public <T> T fromDBObject(final Datastore datastore, final Class<T> entityClass, final DBObject dbObject, final EntityCache cache) {
          if (dbObject == null) {
              LOG.error("A null reference was passed in for the dbObject", new Throwable());
              return null;
          }
  
          return fromDb(datastore, dbObject, opts.getObjectFactory().createInstance(entityClass, dbObject), cache);
      }
docs: Converts a DBObject back to a type-safe java object (POJO)
  
  @param <T>         the type of the entity
  @param datastore   the Datastore to use when fetching this reference
  @param entityClass The type to return, or use; can be overridden by the @see Mapper.CLASS_NAME_FIELDNAME in the DBObject
  @param dbObject    the DBObject containing the document from mongodb
  @param cache       the EntityCache to use
  @return the new entity
  @morphia.internal
  @deprecated no replacement is planned