if (isTrusted) {
keyStoreWrapper = new TrustKeyStoreWrapper();
((TrustKeyStoreWrapper) keyStoreWrapper).init(getTrustKeyStoreInformation(cmd));
} else {
keyStoreWrapper = new IdentityKeyStoreWrapper();
//Password for access private key
String keyPass = getArgument(cmd, KEY_PASS, null);
assertEmpty(keyPass, KEY_PASS);
((IdentityKeyStoreWrapper) keyStoreWrapper).init(
getIdentityKeyStoreInformation(cmd), keyPass);