code: public static RepositoryConfiguration read( InputStream stream,
                                                  String name ) throws ParsingException, FileNotFoundException {
          CheckArg.isNotNull(stream, "stream");
          CheckArg.isNotNull(name, "name");
          Document doc = Json.read(stream);
          return new RepositoryConfiguration(doc, withoutExtension(name));
      }
docs: Read the supplied stream containing a JSON file, and parse into a {@link RepositoryConfiguration}.
  
  @param stream the file; may not be null
  @param name the name of the resource; may not be null
  @return the parsed repository configuration; never null
  @throws ParsingException if the content could not be parsed as a valid JSON document
  @throws FileNotFoundException if the file could not be found