Make sure WeldInvocationContext survives being dispatched to a different thread
Remove duplicated code
Upgrade jboss-classfilewriter to 1.0.5.Final