preverifier = (Preverifier) this.extensionManager.getExtension( ExtensionManager.TYPE_PREVERIFIER, preverifierName, this.environment );
preverifier = (Preverifier) this.extensionManager.getTemporaryExtension( ExtensionManager.TYPE_PREVERIFIER, preverifierName, this.environment );
	protected void preverify( Device device, Locale locale ) {		System.out.println("preverifying for device [" + device.getIdentifier() + "].");				// add environment settings:		File preverifyExecutable = this.buildSetting.getPreverify();		if ( preverifyExecutable != null ) {			this.environment.set( "preverify.executable", preverifyExecutable );		}		File destinationDir;		if (this.buildSetting.isInCompilerMode()) {			destinationDir = this.buildSetting.getCompilerDestDir();		} else {			destinationDir = new File( device.getClassesDir() );			if ( !destinationDir.exists() ) {				destinationDir = new File( getProject().getBaseDir(), device.getClassesDir() );			}		}		this.environment.set( "preverify.target", destinationDir );		// get the correct preverifier:		Preverifier preverifier = null;		PreverifierSetting[] settings =  this.buildSetting.getPreverifierSettings();		Project antProject = getProject();		BooleanEvaluator evaluator = this.environment.getBooleanEvaluator();		for (int i = 0; i < settings.length; i++) {			PreverifierSetting setting = settings[i];			if ( setting.isActive( evaluator, antProject ) ) {				try {					preverifier = (Preverifier) this.extensionManager.getExtension( ExtensionManager.TYPE_PREVERIFIER, setting,  this.environment );				} catch (Exception e) {					e.printStackTrace();					throw new BuildException("Unable to preverify for device [" + device.getIdentifier() + "], preverifier [" + setting.getName()  + "]: " + e.toString(), e );				}			}		}		if ( preverifier == null ) {			// load default preverifier:			String preverifierName = this.environment.getVariable( "polish.build.Preverifier" );			if (  preverifierName != null ) {				try {					preverifier = (Preverifier) this.extensionManager.getExtension( ExtensionManager.TYPE_PREVERIFIER, preverifierName, this.environment );				} catch (Exception e) {					e.printStackTrace();					throw new BuildException("Unable to preverify for device [" + device.getIdentifier() + "], preverifier [" + preverifierName + "]: " + e.toString(), e );				}			} else {				preverifier = new CldcPreverifier();			}		}				// execute preverifier:		preverifier.execute( device, locale, getEnvironment() );			}