class SecurityRoleFunctionServiceImpl implements SecurityRoleFunctionService {

    @Override
    public SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityRole(SecurityRoleKey securityRoleKey)
    {
        // Validate and trim the security role to function key.
        securityRoleHelper.validateAndTrimSecurityRoleKey(securityRoleKey);

        // Retrieve and return a list of security role to function mapping keys for the specified security role.
        SecurityRoleFunctionKeys securityRoleFunctionKeys = new SecurityRoleFunctionKeys();
        securityRoleFunctionKeys.getSecurityRoleFunctionKeys()
            .addAll(securityRoleFunctionDao.getSecurityRoleFunctionKeysBySecurityRole(securityRoleKey.getSecurityRoleName()));
        return securityRoleFunctionKeys;
    }

}