code: public String getDelegateName()
      {
          javax.swing.text.Element data = getElement();
          if (data instanceof DelegateElement) { return ((DelegateElement) data)
                  .getDelegateName(); }
          return null;
      }
docs: Gets the name of delegate
  
  @return the name. It may not be a name of a Class !