FORGE-1848: Fix CDI explosions. Weld doesn't like Anonmymous classes sometimes for some reason?