protected static ResteasyClient client;
protected static PublishedRealmRepresentation realmInfo;
public static void setupIDM(String realmJson) throws Exception
{
idm = new InfinispanIDM(getDefaultCache());
RealmFactory factory = new RealmFactory(idm);
deployment.getProviderFactory().register(new SkeletonKeyContextResolver(true));
deployment.getRegistry().addSingletonResource(factory);
TokenManagement tokenManagement = new TokenManagement(idm);