String outFileParent = outFile.getParent() + File.separator;
String outFileParent = outFile.getParent();
  public static void main(String[] args) {    processArgs(args);    //Create and install a security manager    if (System.getSecurityManager() == null)      System.setSecurityManager(new RMISecurityManager());    try {      ObjectReaderFactory orf =	new SexpObjectReaderFactory();      ObjectReaderFactory norf =	new SexpNumberedObjectReaderFactory();      // we pass the same object writer factory for writing both      // numbered and un-numbered sentences, which is the text-based      // one that the danbikel.switchboard package provides for us      ObjectWriterFactory owf =	new TextObjectWriterFactory();      // for now, take directory of the sole specified output file,      // and create messages file in that directory      File outFile = new File(outFilenameMain);      String outFileParent = outFile.getParent() + File.separator;      if (outFileParent == null)        outFileParent = "";      String messageFilename =        outFileParent + Switchboard.defaultMessagesFilename;      Switchboard switchboard = new Switchboard(messageFilename,						portMain,						reProcessMain,						orf, norf,						owf, owf,						bindingName);      switchboard.bind(Settings.getSettings(), Language.encoding());      switchboard.processFile(inFilenameMain, outFilenameMain, logFilenameMain);      switchboard.cleanup();    }    catch (RemoteException re) {      System.err.println(re);    }    catch (MalformedURLException mue) {      System.err.println(mue);    }  }