class SecurityRoleFunctionHelper {

    public void validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)
    {
        Assert.notNull(securityRoleFunctionKey, "A security role to function mapping key must be specified.");
        securityRoleFunctionKey
            .setSecurityRoleName(alternateKeyHelper.validateStringParameter("security role name", securityRoleFunctionKey.getSecurityRoleName()));
        securityRoleFunctionKey
            .setSecurityFunctionName(alternateKeyHelper.validateStringParameter("security function name", securityRoleFunctionKey.getSecurityFunctionName()));
    }

}