key = ReflectionUtil.coerce(byte[].class, property.getValue(instance));
}
try {
IEncryptionProvider provider = new SimpleEncryptionProvider(SimpleEncryptionKey.createUsing(Strength.STRONG, config == null ? "AES" : config.algorithm(), key));
cache.put(clazz.getDescribedClass().getName(), new SoftReference<IEncryptionProvider>(provider));
return provider;
} catch (InvalidKeyException e) {
throw ThrowableManagerRegistry.caught(e);
}