return res;
}
public void updateMetadata(String path, NodeMetadata m) throws DirectoryServiceException{
if(metadataBag.remove(path)==null)
throw new DirectoryServiceException("Node not exists.");
metadataBag.put(m.getPath(), m);
if(!path.equals(m.getPath())){
for(NodeMetadata mdata : metadataBag.values()){
if(mdata.getParent().equals(path)){