code: private String getElementName(ClassDescriptor classDesc)
      {
          String elementName = classDesc.getClassNameOfObject().replace('$', '_');
  
          elementName = elementName.substring(elementName.lastIndexOf('.') + 1);
  
          Table table  = getTableFor(elementName);
          int   suffix = 0;
  
          while ((table != null) && !table.getName().equals(classDesc.getFullTableName()))
          {
              ++suffix;
              table = getTableFor(elementName + "-" + suffix);
          }
          if (suffix > 0)
          {
              elementName += "-" + suffix;
          }
  
          return elementName;
      }
docs: Returns the element name for the class descriptor which is the adjusted short (unqualified) class
  name. Also takes care that the element name does not clash with another class of the same short
  name that maps to a different table though.
  
  @param classDesc The class descriptor
  @return The element name