public void addPostProcessor(String classname) { try { PostProcessor pp = (PostProcessor) this.getClass().getClassLoader() .loadClass(classname) .newInstance(); addPostProcessor(pp); } catch (InstantiationException e) {  e.printStackTrace(); } catch (IllegalAccessException e) {  e.printStackTrace(); } catch (ClassNotFoundException e) {  e.printStackTrace(); }
public void addPostProcessor(PostProcessor pp) { processors.add(pp);
    public void addPostProcessor(String classname) {        try {            PostProcessor pp = (PostProcessor) this.getClass().getClassLoader()                                                   .loadClass(classname)                                                   .newInstance();            addPostProcessor(pp);        } catch (InstantiationException e) {            // TODO Auto-generated catch block            e.printStackTrace();        } catch (IllegalAccessException e) {            // TODO Auto-generated catch block            e.printStackTrace();        } catch (ClassNotFoundException e) {            // TODO Auto-generated catch block            e.printStackTrace();        }    }