@Override
public void createNewQueue(String queueName, String owner, boolean durable, Map<String, Object> originalArguments)
throws IOException, JMException
{
final Map<String, Object> createArgs = processNewQueueArguments(queueName, owner, originalArguments);
final Map<String, Object> attributes = QueueArgumentsConverter.convertWireArgsToModel(createArgs);
attributes.put(Queue.NAME, queueName);
attributes.put(Queue.DURABLE, durable);
attributes.put(Queue.LIFETIME_POLICY, LifetimePolicy.PERMANENT);
try
{
getConfiguredObject().createQueue(attributes);
}
catch (QueueExistsException qee)
{
throw new IllegalArgumentException("Queue with name '" + queueName + "' already exists");
}
}