if (this.environment.hasSymbol("polish.useDefaultPackage")) {
if ( useDefaultPackage ) {
	public void postCompile(File classesDir, Device device)	throws BuildException 	{		String[] fileNames = FileUtil.filterDirectory( classesDir, ".class", true );		ArrayList filesList = new ArrayList( fileNames.length );		for (int i = 0; i < fileNames.length; i++) {			String fileName = fileNames[i];			if (!(fileName.endsWith("StyleSheet.class") 					|| fileName.endsWith("MasterCanvas.class")					//|| fileName.endsWith("ScreenChangeAnimation.class") 					//|| (fileName.indexOf("screenanimations") != -1)					//|| fileName.endsWith("Locale.class")					//|| fileName.endsWith("Debug.class")			 )) 			{				filesList.add( new File( classesDir, fileName ) );			//} else {			//	System.out.println("ScreenChanger: skipping class " + fileName);			}		}		File[] files = (File[]) filesList.toArray( new File[ filesList.size() ] );				try		{			System.out.println("MasterCanvas: mapping of Display.setCurrent() for " + files.length + " class files.");			boolean useDefaultPackage = this.environment.hasSymbol("polish.useDefaultPackage");			String masterCanvasClassName;			if ( useDefaultPackage ) {				masterCanvasClassName = "MasterCanvas";			} else {				masterCanvasClassName = "de/enough/polish/ui/MasterCanvas";			}						MethodMapper mapper = new MethodMapper();			mapper.setClassLoader(device.getClassLoader());						boolean enableScreenEffects = this.environment.hasSymbol("polish.css.screen-change-animation");			if (enableScreenEffects) {				String styleSheetClass;				if (this.environment.hasSymbol("polish.useDefaultPackage")) {					styleSheetClass = "StyleSheet";				} else {										styleSheetClass = "de/enough/polish/ui/StyleSheet";				}				mapper.addMapping(						new MethodInvocationMapping(													true, "javax/microedition/lcdui/Display", "setCurrent",													"(Ljavax/microedition/lcdui/Displayable;)V",													false, styleSheetClass, "setCurrent",													"(Ljavax/microedition/lcdui/Display;Ljavax/microedition/lcdui/Displayable;)V")					);							} else {				mapper.addMapping(					new MethodInvocationMapping(												true, "javax/microedition/lcdui/Display", "setCurrent",												"(Ljavax/microedition/lcdui/Displayable;)V",												false, masterCanvasClassName, "setCurrent",												"(Ljavax/microedition/lcdui/Display;Ljavax/microedition/lcdui/Displayable;)V")				);			}			mapper.addMapping(				new MethodInvocationMapping(											true, "javax/microedition/lcdui/Display", "getCurrent",											"()Ljavax/microedition/lcdui/Displayable;",											false, masterCanvasClassName, "getCurrent",											"(Ljavax/microedition/lcdui/Display;)Ljavax/microedition/lcdui/Displayable;")			);						String accessibleCanvasClassName;			if ( useDefaultPackage ) {				accessibleCanvasClassName = "AccessibleCanvas";			} else {				accessibleCanvasClassName = "de/enough/polish/ui/AccessibleCanvas";			}			// Optional mapping of javax.microedition.lcdui.Canvas			if ("true".equals(this.environment.getVariable("polish.MasterCanvas.mapCanvasCalls")))			{				// mapping of repaint():				mapper.addMapping(				  	new MethodInvocationMapping(												  true, "javax.microedition.lcdui.Canvas", "repaint",												  "()V",												  false, masterCanvasClassName, "repaintCanvas",													"(Ljavax.microedition.lcdui.Canvas;)V"));				// mapping of isShown():				mapper.addMapping(						new MethodInvocationMapping(													true, "javax.microedition.lcdui.Canvas", "isShown",													"()V",													false, masterCanvasClassName, "isCanvasShown",													"(Ljavax.microedition.lcdui.Canvas;)V"));			} else {				// map only AccessibleCanvas calls:				// mapping of repaint():				mapper.addMapping(					new MethodInvocationMapping(												true, accessibleCanvasClassName, "repaint",												"()V",												false, masterCanvasClassName, "repaintAccessibleCanvas",												"(L" + accessibleCanvasClassName + ";)V"));				// mapping of isShown():				mapper.addMapping(						new MethodInvocationMapping(													true, accessibleCanvasClassName, "isShown",													"()V",													false, masterCanvasClassName, "isAccessibleCanvasShown",													"(L" + accessibleCanvasClassName + ";)V"));							}							mapper.doMethodMapping(files);		}		catch (IOException e)		{			e.printStackTrace();			throw new BuildException("Unable to map Display.setCurrent( Displayable ) to StyleSheet.setCurrent( Display, Displayable ): " + e.toString(), e );		}	}