if (ss == null)
{
closeConnection(AMQConstant.INTERNAL_ERROR, "No SASL context set up in session",0 );
}
MethodRegistry methodRegistry = getMethodRegistry();
SubjectAuthenticationResult authResult = subjectCreator.authenticate(ss, response);
switch (authResult.getStatus())
{
case ERROR:
Exception cause = authResult.getCause();