code: public static void index(final Indexer indexer, final ClassLoader cl, final String className) {
          final InputStream stream = cl.getResourceAsStream(className.replace('.', '/') + ".class");
          try {
              indexer.index(stream);
          } catch (final IOException ex) {
              throw new RuntimeException(ex);
          }
      }
docs: Indexes a class by it's name.
  
  @param indexer
  Indexer to use.
  @param cl
  Class loader to use.
  @param className
  Full qualified name of the class.