code: protected void addLTPAKeysToFile(OutputStream os, Properties ltpaProps) throws Exception {
          try {
              // Write the ltpa key propeperties to
              ltpaProps.store(os, null);
          } catch (IOException e) {
              throw e;
          } finally {
              if (os != null)
                  try {
                      os.close();
                  } catch (IOException e) {
                  }
          }
  
          return;
      }
docs: Write the LTPA key properties to the given OutputStream. This method
  will close the OutputStream.
  
  @param keyImportFile The import file to be created
  @param ltpaProps The properties containing the LTPA keys
  
  @throws TokenException
  @throws IOException