private void checkNoAttributesIsDefined(String definedAttributeName, PathAddress address, ModelNode model, AttributeDefinition... attrs) throws OperationFailedException {
        List<String> definedAttributes = new ArrayList<>();
        for(AttributeDefinition attr : attrs) {
            if (model.get(attr.getName()).isDefined()) {
                definedAttributes.add(attr.getName());
            }
        }

        if (!definedAttributes.isEmpty()) {
            MessagingLogger.ROOT_LOGGER.invalidConfiguration(address, definedAttributeName, definedAttributes);
        }
    }
private void checkNoAttributesIsDefined(String definedAttributeName, PathAddress address, ModelNode model, AttributeDefinition... attrs) throws OperationFailedException {
        List<String> definedAttributes = new ArrayList<>();
        for(AttributeDefinition attr : attrs) {
            if (model.get(attr.getName()).isDefined()) {
                definedAttributes.add(attr.getName());
            }
        }

        if (!definedAttributes.isEmpty()) {
            MessagingLogger.ROOT_LOGGER.invalidConfiguration(address, definedAttributeName, definedAttributes);
        }
    }
private void checkNoAttributesIsDefined ( String definedAttributeName , PathAddress address , ModelNode model , AttributeDefinition ... attrs ) throws OperationFailedException { List < String > definedAttributes = new ArrayList <> ( ) ; for ( AttributeDefinition attr : attrs ) { if ( model . get ( attr . getName ( ) ) . isDefined ( ) ) { definedAttributes . add ( attr . getName ( ) ) ; } } if ( ! definedAttributes . isEmpty ( ) ) { MessagingLogger . ROOT_LOGGER . invalidConfiguration ( address , definedAttributeName , definedAttributes ) ; } }
/*
Check that none of the attrs are defined, or log a warning.
/ * Check that none of the attrs are defined or log a warning .