code: public static Class infoClass(Class cmp) {
          Class info = null;
          try {
              info = Class.forName(cmp.getName() + "CompInfo");
          } catch (ClassNotFoundException E) {        // there is no info class,
              info = cmp;
          }
          return info;
      }
docs: Get the info class for a component object
  @param cmp
  @return the class that contains the annotations.