code: public <T> CFMappingDef<? super T> findBaseClassViaMappings(CFMappingDef<T> cfMapDef) {
      CFMappingDef<? super T> tmpDef = cfMapDef;
      CFMappingDef<? super T> cfSuperDef;
      while (null != (cfSuperDef = tmpDef.getCfSuperMapDef())) {
        if (cfSuperDef.isBaseEntity()) {
          return cfSuperDef;
        }
        tmpDef = cfSuperDef;
      }
      return null;
    }
docs: Examine class hierarchy using {@link CFMappingDef} objects to discover the
  given class' "base inheritance" class. A base inheritance class is
  determined by {@link CFMappingDef#isBaseEntity()}
  
  @param <T>
  
  @param cfMapDef
  @return returns the base in the ColumnFamily mapping hierarchy