final AuthenticationResponse res = (AuthenticationResponse) response;
res.setMetaData(metaData);
try {
res.writeExternal(out);
} catch (final Exception e) {
logger.fatal("Could not write AuthenticationResponse to output stream", e);
}
} else {
logger.error("AuthRequestHandler cannot process an instance of: " + response.getClass().getName());