fix deployment problem on tomcat and hosted mode. Using ResteasyBootstrap in web.xml on tomcat raised a java.lang.InstantiationException: org.jboss.resteasy.cdi.CdiInjectorFactory exception.This fix is to make tomcat and hosted mode working, will look into ResteasyBootstrap further