Document<Element> doc = getDocument(wrapper);
if (doc != null) {
Encryption enc = security.getEncryption();
if (enc.isEncrypted(doc)) {
Object arg = initArg(request);
EncryptionOptions options = initEncryptionOptions(request,response,enc,arg);
doDecryption(doc, options, enc, wrapper);
}
}
} catch (Exception e) {
} finally {wrapper.reset();}