@Override
    protected void initQueue(T queue, QueueSpec spec) throws Exception {
        queue.setConnectionFactory(defaultConnectionFactory).setUri(defaultUri)
                .setQueueName(defaultQueueName);

        String uri = spec.getField(SPEC_FIELD_URI);
        if (!StringUtils.isBlank(uri)) {
            queue.setUri(uri);
        }

        String queueName = spec.getField(SPEC_FIELD_QUEUE_NAME);
        if (!StringUtils.isBlank(uri)) {
            queue.setQueueName(queueName);
        }

        super.initQueue(queue, spec);
    }
@ Override protected void initQueue ( T queue , QueueSpec spec ) throws Exception { queue . setConnectionFactory ( defaultConnectionFactory ) . setUri ( defaultUri ) . setQueueName ( defaultQueueName ) ; String uri = spec . getField ( SPEC_FIELD_URI ) ; if ( ! StringUtils . isBlank ( uri ) ) { queue . setUri ( uri ) ; } String queueName = spec . getField ( SPEC_FIELD_QUEUE_NAME ) ; if ( ! StringUtils . isBlank ( uri ) ) { queue . setQueueName ( queueName ) ; } super . initQueue ( queue , spec ) ; }
{@inheritDoc}

@throws Exception