code: public Class<?> getDomainClass(Class<?> toClass) {
          Class<?> declaredClass = getDeclaredDomainClass(toClass);
          return classReplacer.replaceClass(declaredClass);
      }
docs: Get domain class for transfer object.
  
  @param toClass transfer object class
  @return domain class as annotated on class