WELD-1423 Invalid cast from DefinitionException to WeldException