*/
@Override
public void create() {
IFileSystem fs = FileSystemRegistry.get(new FileSystemRegKey(Constants.HOST, Configs.getFSConfig().getRootDir()));
IContainer c = fs.getContainer(id);
if (c!=null)
{
JSONNode root = JSONHelper.createSuccessNode();
JSONAttribute id = new JSONAttribute("id", ""+c.getId(), AttrType.Number);
JSONAttribute parentpath = new JSONAttribute("parentpath", c.getParentPath(), AttrType.String);
JSONAttribute numberofsegs = new JSONAttribute("numberofsegs", ""+c.getNumOfSegs(), AttrType.Number);
root.add(id);
root.add(parentpath);
root.add(numberofsegs);
JSONArray segments = new JSONArray("segments");
for (int i = 0; i < c.getSegments().length; i++)
{
ISegment s = c.getSegments()[i];
JSONNode segementNode = new JSONNode();
JSONAttribute segId = new JSONAttribute("id", ""+s.getId(), AttrType.Number);
segementNode.add(segId);