code: public static MetaClass getMetaClass(Object obj) {
          MetaClass mc = InvokerHelper.getMetaClass(obj);
          return new HandleMetaClass(mc, obj);
      }
docs: Obtains a MetaClass for an object either from the registry or in the case of
  a GroovyObject from the object itself.
  
  @param obj The object in question
  @return The MetaClass
  @since 1.5.0