public PrivateKey getPrivateKey(String alias, String password) {
    """
	/*%%
	private static class SavingTrustManager implements X509TrustManager {
	
	private final X509TrustManager tm;
	private X509Certificate[] chain;
	
	SavingTrustManager(X509TrustManager tm) {
	this.tm = tm;
	}
	
	@Override
	public X509Certificate[] getAcceptedIssuers() {
	throw new UnsupportedOperationException();
	}
	
	@Override
	public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
	throw new UnsupportedOperationException();
	}
	
	@Override
	public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
	this.chain = chain;
	tm.checkServerTrusted(chain, authType);
	}
	}
    """
		try {
			return (PrivateKey) ksKeys.getKey(alias, password.toCharArray());
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
public PrivateKey getPrivateKey(String alias, String password) {
		try {
			return (PrivateKey) ksKeys.getKey(alias, password.toCharArray());
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
public PrivateKey getPrivateKey ( String alias , String password ) { try { return ( PrivateKey ) ksKeys . getKey ( alias , password . toCharArray ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
/*%%
private static class SavingTrustManager implements X509TrustManager {

private final X509TrustManager tm;
private X509Certificate[] chain;

SavingTrustManager(X509TrustManager tm) {
this.tm = tm;
}

@Override
public X509Certificate[] getAcceptedIssuers() {
throw new UnsupportedOperationException();
}

@Override
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
throw new UnsupportedOperationException();
}

@Override
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
this.chain = chain;
tm.checkServerTrusted(chain, authType);
}
}
/ * %% private static class SavingTrustManager implements X509TrustManager {