public static Map<String, String> getCatalogProperties(
        Configurations configuration, String catalog) {
      final String prefix = "catalog." + catalog + ".";
      Map<String, String> properties = Maps.newHashMap();
      for (String key : configuration.keySet()) {
        if (key.startsWith(prefix)) {
          ConfigOption<String> confOption = ConfigOptions.key(key).stringType().noDefaultValue();
          properties.put(key.substring(prefix.length()), configuration.getString(confOption));
        }
      }
      return properties;
    }
create a new session

@param metaStore - auth info
@param configuration - configuration of session, all properties are defined in {@link
    SessionConfigOptions}
@return - new terminal context
amoro-ams/src/main/java/org/apache/amoro/server/terminal/TerminalSessionFactory.java