System.err.println(e.getMessage()); e.printStackTrace(System.err);
LogPanel logPanel = (LogPanel)modules.get("log"); logPanel.appendText(e.getMessage()); ByteArrayOutputStream log = new ByteArrayOutputStream(); e.printStackTrace(new PrintStream(log)); logPanel.appendText("" + log);
    public void test() {	if (((PropertyService)getSession()).getProperty("build.dir") == null)	    ((PropertyService)getSession()).setProperty("build.dir", "/tmp/ide");	SPanel builderPanel = (SPanel)modules.get("builder");	PropertyPanel propertyPanel = (PropertyPanel)modules.get("properties");	Class componentClass = (Class)component.getSelectedItem();	try {	    SComponent test = (SComponent)componentClass.newInstance();	    builderPanel.removeAll();	    builderPanel.add(test);	    String url = "file:" + (String)((PropertyService)getSession()).getProperty("build.dir")		+ "/dist/plaf/" + "plaf" + "-plaf.jar";	    System.out.println("url: " + url);	    ClassLoader loader = new URLClassLoader(new URL[] { new URL(url) },						    getClass().getClassLoader());	    Class cgClass = loader.loadClass("plaf." + props.getProperty("name"));	    ComponentCG cg = (ComponentCG)cgClass.newInstance();	    	    Method cgSetter = findCGSetter(componentClass);	    cgSetter.invoke(test, new Object[] { cg });	    propertyPanel.setComponent(test);	}	catch (Exception e) {	    System.err.println(e.getMessage());	    e.printStackTrace(System.err);	}    }