code: public List<String> findNames(String classname, String[] pkgnames) {
      List<String>	result;
      Class		cls;
  
      result = new ArrayList<>();
  
      try {
        cls    = Class.forName(classname);
        result = findNames(cls, pkgnames);
      }
      catch (Throwable t) {
        getLogger().log(Level.SEVERE, "Failed to instantiate '" + classname + "'/" + ClassUtils.arrayToString(pkgnames) + " (findNames):", t);
      }
  
      return result;
    }
docs: Checks the given packages for classes that inherited from the given class,
  in case it's a class, or implement this class, in case it's an interface.
  
  @param classname       the class/interface to look for
  @param pkgnames        the packages to search in
  @return                a list with all the found classnames