Make sure correct ClassLoader is used when using embedded entity classes. Fix class not found org.jboss.weld.bootstrap.spi.Metadata