code: public DBObject toDBObject(final Object entity, final Map<Object, DBObject> involvedObjects) {
          return toDBObject(entity, involvedObjects, true);
      }
docs: Converts an entity (POJO) to a DBObject.  A special field will be added to keep track of the class type.
  
  @param entity          The POJO
  @param involvedObjects A Map of (already converted) POJOs
  @return the DBObject