class SecurityFunctionDaoHelper {

    public SecurityFunctionEntity getSecurityFunctionEntity(String securityFunctionName)
    {
        SecurityFunctionEntity securityFunctionEntity = securityFunctionDao.getSecurityFunctionByName(securityFunctionName);

        if (securityFunctionEntity == null)
        {
            throw new ObjectNotFoundException(String.format("Security function with name \"%s\" doesn't exist.", securityFunctionName));
        }

        return securityFunctionEntity;
    }

}