code: public String generateUniqueID(Class clazz)
      {
          String namePrefix = clazz.getName();
          int dotIndex = namePrefix.lastIndexOf('.');
          if (dotIndex > 0)
              namePrefix = namePrefix.substring(dotIndex+1);
          NameGenerator nameGenerator = getNameGenerator(namePrefix);
          return nameGenerator.next();
      }
docs: Generates a new unique control ID for an instance of the target class