webBeansContext.getAnnotatedElementFactory().clear();
}
}
catch (UnsatisfiedResolutionException e)
{
throw new DeploymentException(e);
}
catch (AmbiguousResolutionException e)
{
throw new DeploymentException(e);
}
catch (UnproxyableResolutionException e)
{
// the tck expects a DeploymentException, but it really should be a DefinitionException, see i.e. https://issues.jboss.org/browse/CDITCK-346
throw new DeploymentException(e);
}
catch (WebBeansConfigurationException e)
{
throw new DeploymentException(e);
}
catch (Exception e)
{
throw ExceptionUtil.throwAsRuntimeException(e);
}