if (server == null)
{
throw new IllegalStateException("Unable to create connection, server hasn't finished starting up");
}
ProtocolManager pmgr = this.getProtocolManager(protocol);
if (pmgr == null)
{
throw HornetQMessageBundle.BUNDLE.unknownProtocol(protocol);
}
ConnectionEntry entry = pmgr.createConnectionEntry((Acceptor)component, connection);
if (isTrace)
{
HornetQServerLogger.LOGGER.trace("Connection created " + connection);
}