if (ChainBuilderAgent.DEBUG)
if (ChainBuilderAgent.DEBUG > 4)
		public void mouseDoubleClicked(GenericEventHandler handler,				PInputEvent event) {						try {				if (ChainBuilderAgent.DEBUG)					System.err.println("Saving chain snapshot...");				PBounds b = chainView.getFullBounds();				BufferedImage image = (BufferedImage) 						chainView.toImage((int) (b.getWidth()*2),						(int) (b.getHeight()*2),Constants.CANVAS_BACKGROUND_COLOR);			 				ImageIO.write(image,"png",new File("foo.png"));				if (ChainBuilderAgent.DEBUG)					System.err.println("...done");			} catch (Exception ex) {				if (ChainBuilderAgent.DEBUG)					System.err.println("Failed to save chain snapshot");							}		}