code: public MappedClass getMappedClass(final Object obj) {
          if (obj == null) {
              return null;
          }
  
          Class type = (obj instanceof Class) ? (Class) obj : obj.getClass();
          if (ProxyHelper.isProxy(obj)) {
              type = ProxyHelper.getReferentClass(obj);
          }
  
          MappedClass mc = mappedClasses.get(type.getName());
          if (mc == null) {
              mc = new MappedClass(type, this);
              // no validation
              addMappedClass(mc, false);
          }
          return mc;
      }
docs: Gets the {@link MappedClass} for the object (type). If it isn't mapped, create a new class and cache it (without validating).
  
  @param obj the object to process
  @return the MappedClass for the object given