AMQ-5160, optimized MQTTProtocolConverter.getSecurityContext