public static boolean isDatabaseRemote(Database db) {
    return db != null && db.getType() == DatabaseType.REMOTE;
  }
The config parameter can be like "path", "/path", "/path/", "path/*", "/path1/path2/*" and so on.
httpPath should end up as "/*", "/path/*" or "/path1/../pathN/*"
@param httpPath
@return
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java