private void setAndDiscard(ModelNode setNode, ModelNode discardNode, AttributeDefinition legacyAttributeDefinition, String newAttributeName) {
        ModelNode attribute = discardNode.get(legacyAttributeDefinition.getName());
        if (attribute.isDefined()) {
            setNode.get(newAttributeName).set(attribute);
            discardNode.remove(legacyAttributeDefinition.getName());
        }
    }
private void setAndDiscard(ModelNode setNode, ModelNode discardNode, AttributeDefinition legacyAttributeDefinition, String newAttributeName) {
        ModelNode attribute = discardNode.get(legacyAttributeDefinition.getName());
        if (attribute.isDefined()) {
            setNode.get(newAttributeName).set(attribute);
            discardNode.remove(legacyAttributeDefinition.getName());
        }
    }
private void setAndDiscard ( ModelNode setNode , ModelNode discardNode , AttributeDefinition legacyAttributeDefinition , String newAttributeName ) { ModelNode attribute = discardNode . get ( legacyAttributeDefinition . getName ( ) ) ; if ( attribute . isDefined ( ) ) { setNode . get ( newAttributeName ) . set ( attribute ) ; discardNode . remove ( legacyAttributeDefinition . getName ( ) ) ; } }
Discard from a node and set it to a new node if the attribute is defined. Use the {@code newAttributeName} as the messaging-activemq may
named differently its corresponding attribute.
Discard from a node and set it to a new node if the attribute is defined . Use the {