CDI-274 BeanManager#getBeans() shall throw an Exception if called before AfterDeploymentValidation
WELD-1337 Update BeanManager method restrictions