currentHandler.set(this);
if (context.getProperty(Context.AUTHENTICATION_SERVICE) != null) {
setAuthenticationService((AuthenticationService) context.getProperty(Context.AUTHENTICATION_SERVICE));
}
if (crypto == null && context.getProperty(Context.KEYSTORE_MANAGER) != null && keystore != null) {
KeystoreManager km = (KeystoreManager) context.getProperty(Context.KEYSTORE_MANAGER);
setCrypto(new KeystoreInstanceCrypto(km, keystore));
}
}