private static void startDeployment() throws Exception
{
deployment = new ResteasyDeployment();
deployment.setSecurityEnabled(true);
deployment.setApplicationClass(SApp.class.getName());
ResteasyProviderFactory factory = new ResteasyProviderFactory();
deployment.setProviderFactory(factory);
factory.property(SkeletonKeyApplication.SKELETON_KEY_INFINISPAN_CONFIG_FILE, "cache.xml");
factory.property(SkeletonKeyApplication.SKELETON_KEY_INFINISPAN_CACHE_NAME, "idp-store");
EmbeddedContainer.start(deployment);
app = ((SApp)deployment.getApplication()).app;
}