code: public void setClassname(final String className) throws BuildException {
      Object proc = null;
      try {
        final Class implClass = ProcessorDef.class.getClassLoader().loadClass(className);
        try {
          final Method getInstance = implClass.getMethod("getInstance");
          proc = getInstance.invoke(null);
        } catch (final Exception ex) {
          proc = implClass.newInstance();
        }
      } catch (final Exception ex) {
        throw new BuildException(ex);
      }
      setProcessor((Processor) proc);
    }
docs: Sets the class name for the adapter. Use the "name" attribute when the
  tool is supported.
  
  @param className
  full class name