String path = requestContext.getResourcePath().getPath();
String confPath = path +
RegistryConstants.PATH_SEPARATOR + RegistryConstants
.SYNAPSE_CONF_COLLECTION_NAME;
CollectionImpl confCollection = new CollectionImpl();
confCollection.setPath(confPath);
confCollection.setMediaType(RegistryConstants.SYNAPSE_CONF_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(confPath, confCollection);
String seqPath = path + RegistryConstants.PATH_SEPARATOR +
RegistryConstants.SYNAPSE_SEQUENCES_COLLECTION_NAME;
CollectionImpl seqCollection = new CollectionImpl();
seqCollection.setPath(seqPath);
seqCollection.setMediaType(RegistryConstants.SYNAPSE_SEQUENCE_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(seqPath, seqCollection);
String epPath = path + RegistryConstants.PATH_SEPARATOR +
RegistryConstants.SYNAPSE_ENDPOINT_COLLECTION_NAME;
CollectionImpl epCollection = new CollectionImpl();
epCollection.setPath(epPath);
epCollection.setMediaType(RegistryConstants.SYNAPSE_ENDPOINT_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(epPath, epCollection);
String proxyServicesPath = path + RegistryConstants.PATH_SEPARATOR +
RegistryConstants.SYNAPSE_PROXY_SERVICES_COLLECTION_NAME;
CollectionImpl proxyCollection = new CollectionImpl();
proxyCollection.setPath(proxyServicesPath);
proxyCollection
.setMediaType(RegistryConstants.SYNAPSE_PROXY_SERVICES_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(proxyServicesPath, proxyCollection);
String tasksPath = path + RegistryConstants.PATH_SEPARATOR +
RegistryConstants.SYNAPSE_TASKS_COLLECTION_NAME;
CollectionImpl tasksCollection = new CollectionImpl();
tasksCollection.setPath(tasksPath);
tasksCollection.setMediaType(RegistryConstants.SYNAPSE_TASKS_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(tasksPath, tasksCollection);
String entriesPath = path + RegistryConstants.PATH_SEPARATOR +
RegistryConstants.SYNAPSE_ENTRIES_COLLECTION_NAME;
CollectionImpl entryCollection = new CollectionImpl();
entryCollection.setPath(entriesPath);
entryCollection.setMediaType(RegistryConstants.SYNAPSE_ENTRIES_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(entriesPath, entryCollection);
}