code: public void readXML(@WillClose InputStream in, File base) throws IOException, DocumentException {
          try {
              doReadXML(in, base);
          } finally {
              in.close();
          }
      }
docs: Read XML data from given input stream into this object, populating the
  Project as a side effect. An attempt will be made to close the input
  stream (even if an exception is thrown).
  
  @param in
  the InputStream