public Process(final File file,final ProgressListener progressListener) throws IOException, XMLException {
  this.processLocation=new FileProcessLocation(file);
  initContext();
  Reader in=null;
  try {
    in=new InputStreamReader(new FileInputStream(file),"UTF-8");
    readProcess(in,progressListener);
  }
 catch (  IOException e) {
    throw e;
  }
 finally {
    if (in != null) {
      in.close();
    }
  }
}

public Process ( final File file , final ProgressListener progressListener ) throws IOException , XMLException { this . processLocation = new FileProcessLocation ( file ) ; initContext ( ) ; Reader in = null ; try { in = new InputStreamReader ( new FileInputStream ( file ) , "UTF-8" ) ; readProcess ( in , progressListener ) ; } catch ( IOException e ) { throw e ; } finally { if ( in != null ) { in . close ( ) ; } } }
creates a new process from the given process file . this might have been created with the gui beforehand .
