ResourceResolver.registerAtStart(OldResourceResolverSpi.class.getName());
ResourceResolver resolver=ResourceResolver.getInstance(uri, "test");
ResourceResolver resolver1=ResourceResolver.getInstance(uri1, "test1");
ResourceResolver resolver2=ResourceResolver.getInstance(uri1, "test2");
resolver2.resolve(uri1, "test2");
resolver.resolve(uri, "test");
resolver1.resolve(uri1, "test1");
};