File script = new File( report.getBasePath( ), fileName );
	public void loadScript( String fileName )	{		//check if the script has been loaded.		if ( loadedScripts.contains( fileName ) )			return;		//read the script in the file, and execution.		try		{			File script = new File( report.getBasePath( ), fileName );			FileInputStream in = new FileInputStream( script );			byte[] buffer = new byte[in.available( )];			in.read( buffer );			execute( new String( buffer, "UTF-8" ), fileName, 1 ); //$NON-NLS-1$			in.close( );			loadedScripts.add( fileName );		}		catch ( IOException ex )		{		    log.log( Level.SEVERE, "loading external script file " + fileName + " failed.", //$NON-NLS-1$ //$NON-NLS-2$					ex );		    addException( new EngineException( "Failed to load the external script file ", ex ) ); //$NON-NLS-1$			//TODO This is a fatal error. Should throw an exception.		}	}