docs: public static KeyStore newKeyStore(final String type, final String password,
  		final File keystoreFile, final boolean newEmpty) throws NoSuchAlgorithmException,
  		CertificateException, FileNotFoundException, IOException, KeyStoreException
  	{
  		final KeyStore keyStore = KeyStore.getInstance(type);
  		if (newEmpty)
  		{
  			keyStore.load(null, password.toCharArray());
  			if (!keystoreFile.exists())
  			{
  				keystoreFile.createNewFile();
  			}
  			OutputStream out = new FileOutputStream(keystoreFile);
  			keyStore.store(out, password.toCharArray());
  			return keyStore;
  		}
  		keyStore.load(new FileInputStream(keystoreFile), password.toCharArray());
  		return keyStore;
  	}