/**
   * Load the leJOS NXJ properties
   *
   * @return the Properties object
   * @throws NXTCommException
   */
  public static Properties getNXJProperties() throws NXTCommException {
    Properties props = new Properties();
    setPropsFile();

    if (propFile != null) {
      try {
        props.load(new FileInputStream(propFile));
      } catch (FileNotFoundException e) {
      } catch (IOException e) {
        throw new NXTCommException("Cannot read nxj.properties file");
      }
    }
    return props;
  }
 /**
  * Save the leJOS NXJ Properties
  *
  * @param props the complete set of properties
  * @param comment a comment that is written to the file
  * @throws IOException
  */
 public static void saveNXJProperties(Properties props, String comment) throws IOException {
   FileOutputStream fos;
   setPropsFile();
   fos = new FileOutputStream(propFile);
   props.store(fos, comment);
 }