String folder = getTempFolder( ) + "/" + INPUT_FOLDER;
String folder = getTempFolder( );  int index = resourceName.lastIndexOf( INPUT_FOLDER ); if (index != 0) { String relateDir = resourceName.substring( 0, index -1 ); folder = folder + "/" + relateDir; }  folder = folder + "/" + INPUT_FOLDER;
	protected String copyContentToFile( String resourceName ) throws Exception	{		URL url = getResource( resourceName );		InputStream is = url.openStream( );		String folder = getTempFolder( ) + "/" + INPUT_FOLDER; //$NON-NLS-1$		File tmpFolder = new File( folder );		if ( !tmpFolder.exists( ) )			tmpFolder.mkdirs( );		String filename = ""; //$NON-NLS-1$		int lastSlash = resourceName.lastIndexOf( "/" ); //$NON-NLS-1$		if ( lastSlash != -1 )		{			filename = resourceName.substring( lastSlash + 1 );		}		FileOutputStream fos = new FileOutputStream( folder + filename );		byte[] fileData = new byte[5120];		int readCount = -1;		while ( ( readCount = is.read( fileData ) ) != -1 )		{			fos.write( fileData, 0, readCount );		}		fos.close( );		is.close( );		return folder + filename;	}