private void close(Closeable is) {
    if(is == null) {
      return;
    }
    try {
      is.close();
    }
    catch (IOException ex) {
      LOG.trace("Failed to close InputStream: " + ex.getMessage());
    }
  }
Static method to get the path based on the type.

@param type
@param root
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/HDFSStorage.java