code: public static MojoModel readFrom(MojoReaderBackend reader, final boolean readModelDescriptor) throws IOException {
      try {
        Map<String, Object> info = parseModelInfo(reader);
        if (! info.containsKey("algorithm"))
          throw new IllegalStateException("Unable to find information about the model's algorithm.");
        String algo = String.valueOf(info.get("algorithm"));
        ModelMojoReader mmr = ModelMojoFactory.INSTANCE.getMojoReader(algo);
        mmr._lkv = info;
        mmr._reader = reader;
        mmr.readAll(readModelDescriptor);
        return mmr._model;
      } finally {
        if (reader instanceof Closeable)
          ((Closeable) reader).close();
      }
    }
docs: De-serializes a {@link MojoModel}, creating an instance of {@link MojoModel} useful for scoring
  and model evaluation.
  
  @param reader      An instance of {@link MojoReaderBackend} to read from existing MOJO
  @param readModelDescriptor If true,
  @return De-serialized {@link MojoModel}
  @throws IOException Whenever there is an error reading the {@link MojoModel}'s data.