code: public Object encode(final Class c, final Object o) {
          return getEncoder(c).encode(o);
      }
docs: encode the type safe java object into the corresponding {@link com.mongodb.DBObject}
  
  @param c The type to use when encoding
  @param o The object to encode
  @return the encoded version of the object