class MavenModels {

  @Nullable
  public static Model readModel(final InputStream inputStream) throws IOException {
    try (InputStream is = inputStream) {
      return MODEL_READER.read(is, false);
    }
    catch (XmlPullParserException | EOFException e ) {
      log.debug("Could not parse XML into Model", e);
      return null;
    }
  }

  private  MavenModels();

}