{
// Check access
if (!_host.getSecurityManager().authoriseCreateExchange(autoDelete, durable, exchange, null, null, null, type))
{
String description = "Permission denied: exchange-name '" + exchange.asString() + "'";
throw new AMQSecurityException(description);
}
ExchangeType<? extends Exchange> exchType = _exchangeClassMap.get(type);
if (exchType == null)
{