code: public static JSONObject getRepositoryDef(final String repositoryName) {
          if (StringUtils.isBlank(repositoryName)) {
              return null;
          }
  
          if (null == repositoriesDescription) {
              return null;
          }
  
          final JSONArray repositories = repositoriesDescription.optJSONArray("repositories");
          for (int i = 0; i < repositories.length(); i++) {
              final JSONObject repository = repositories.optJSONObject(i);
              if (repositoryName.equals(repository.optString("name"))) {
                  return repository;
              }
          }
  
          throw new RuntimeException("Not found the repository [name=" + repositoryName + "] definition, please define it in repositories.json");
      }
docs: Gets the repository definition of an repository specified by the given repository name.
  
  @param repositoryName the given repository name (maybe with table name prefix)
  @return repository definition, returns {@code null} if not found