"Server will not accept create session requests");
}
Channel channel = connection.getChannel(request.getSessionChannelID(), request.getWindowSize());
ServerSession session = server.createSession(request.getName(),
request.getUsername(),
request.getPassword(),
request.getMinLargeMessageSize(),
connection,
request.isAutoCommitSends(),
request.isAutoCommitAcks(),
request.isPreAcknowledge(),
request.isXA(),
request.getDefaultAddress(),
new CoreSessionCallback(request.getName(),
protocolManager,
channel));
session.setSessionContext(server.getStorageManager().newContext(server.getExecutorFactory().getExecutor()));
ServerSessionPacketHandler handler = new ServerSessionPacketHandler(session,
server.getStorageManager(),
channel);
channel.setHandler(handler);