try {
VirtualDevice dev =
VirtualDeviceFactory.createDevice(RAMFileSystemType.VIRTUAL_DEVICE_NAME);
log.info(dev.getId() + " registered");
final RAMFileSystem fs = type.create(dev, true);
fSS.registerFileSystem(fs);
final String mountPath = "jnode";
fSS.mount(mountPath, fs, null);
log.info("Mounted " + type.getName() + " on " + mountPath);
FSDirectory root_dir = fs.getRootEntry().getDirectory();
root_dir.addDirectory("home");
root_dir.addDirectory("tmp");
// adding files to /jnode/lib/ required by thecore classes
FSDirectory libDir = (FSDirectory) root_dir.addDirectory("lib");
InputStream is = RAMFSPlugin.class.getResourceAsStream("flavormap.properties");