code: public static String getJ2EEComponentName() {
          ComponentMetaData wcmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
          if (wcmd != null) {
              J2EEName j2eename = wcmd.getJ2EEName();
              return j2eename.getComponent();
          } else {
              return null;
          }
      }
docs: /*
  Get the J2EE component name