Changed logic to grab bean block class for anonymous/logged users