private void writeKeystore(File configDefaults) throws IOException {
  File keystoreXML=new File(configDefaults,"cargo-keystore.xml");
  PrintStream writer=ServerConfigUtils.open(keystoreXML);
  writer.print("  <keyStore password=\"");
  writer.print(genPassword());
  writer.println("\"/>");
  ServerConfigUtils.close(writer);
}

private void writeKeystore ( File configDefaults ) throws IOException { File keystoreXML = new File ( configDefaults , "cargo-keystore.xml" ) ; PrintStream writer = ServerConfigUtils . open ( keystoreXML ) ; writer . print ( "  <keyStore password=\"" ) ; writer . print ( genPassword ( ) ) ; writer . println ( "\"/>" ) ; ServerConfigUtils . close ( writer ) ; }
write the keystore password so the server will correctly start if the server is configured to enable ssl . this writes to the defaults directory so other definitions of the password override .
