code: public static Mapping getMapping(PersistentEntity domainClass) {
          return domainClass == null ? null : AbstractGrailsDomainBinder.getMapping(domainClass.getJavaClass());
      }
docs: Obtains a mapping object for the given domain class nam
  
  @param domainClass The domain class in question
  @return A Mapping object or null