code: public Object getParent(Object element) {
  
      if (element instanceof DFSPath) {
        return ((DFSPath) element).getParent();
  
      } else if (element instanceof HadoopServer) {
        return locationsRoot;
      }
  
      return null;
    }
docs: /* @inheritDoc