code: public static Repository newRepository() {
          try {
              MapRepositoryBuilder builder = new MapRepositoryBuilder();
              return builder.build();
          } catch (RepositoryException e) {
              // Not expected.
              throw new RuntimeException(e);
          }
      }
docs: Convenience method to build a new MapRepository.