if (! request.getPathInfo().replace("/", "").equals(LOAD_SAMPLE_DATA_PATH)) return(false);
// load store with sample data
Store store = (Store) this.serverConfig.getComponentRegistry().getComponent(Store.class);
try {
SubSegment rootSubSegment1 = store.createRootSubSegment("=example", new XRD());
Authority rootAuthority1 = store.getSubSegmentAuthority(rootSubSegment1);
SubSegment subSegment1 = store.registerSubsegment(rootAuthority1, "*name1", makeSampleXRD());
SubSegment subSegment2 = store.registerSubsegment(rootAuthority1, "*name2", makeSampleXRD());
SubSegment rootSubSegment2 = store.createRootSubSegment("@example", new XRD());
Authority rootAuthority2 = store.getSubSegmentAuthority(rootSubSegment2);
SubSegment subSegment3 = store.registerSubsegment(rootAuthority2, "*name3", makeSampleXRD());
Authority authority3 = store.getSubSegmentAuthority(subSegment3);
SubSegment subSegment4 = store.registerSubsegment(authority3, "*name4", makeSampleXRD());
} catch (StoreException ex) {
ex.printStackTrace();
}