class GlobalAttributeDefinitionHelper {

    public void validateGlobalAttributeDefinitionKey(GlobalAttributeDefinitionKey globalAttributeDefinitionKey) throws IllegalArgumentException
    {
        // Validate.
        Assert.notNull(globalAttributeDefinitionKey, "A global attribute definition key must be specified.");
        globalAttributeDefinitionKey.setGlobalAttributeDefinitionLevel(
            alternateKeyHelper.validateStringParameter("global attribute definition level", globalAttributeDefinitionKey.getGlobalAttributeDefinitionLevel()));
        globalAttributeDefinitionKey.setGlobalAttributeDefinitionName(
            alternateKeyHelper.validateStringParameter("global attribute definition name", globalAttributeDefinitionKey.getGlobalAttributeDefinitionName()));
    }

}