String path = requestContext.getResourcePath().getPath();
String confPath = path +
RegistryConstants.PATH_SEPARATOR + RegistryConstants
.AXIS2_CONF_COLLECTION_NAME;
CollectionImpl confCollection = new CollectionImpl();
confCollection.setPath(confPath);
confCollection.setMediaType(RegistryConstants.AXIS2_CONF_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(confPath, confCollection);
String servicesPath = path +
RegistryConstants.PATH_SEPARATOR + RegistryConstants
.AXIS2_SERVICES_COLLECTION_NAME;
CollectionImpl servicesCollection = new CollectionImpl();
servicesCollection.setPath(servicesPath);
servicesCollection.setMediaType(RegistryConstants.AXIS2_SERVICES_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(servicesPath, servicesCollection);
String modulesPath = path +
RegistryConstants.PATH_SEPARATOR + RegistryConstants
.AXIS2_MODULES_COLLECTION_NAME;
CollectionImpl modulesCollection = new CollectionImpl();
modulesCollection.setPath(modulesPath);
modulesCollection.setMediaType(RegistryConstants.AXIS2_MODULES_COLLECTION_MEDIA_TYPE);
requestContext.getRegistry().put(modulesPath, modulesCollection);
}