public static OAIPMHtype parse(
     String filepath,
     OAIServiceConfiguration<MetadataParser, AboutItemParser, DescriptionParser, AboutSetParser>
         oaiServiceConfiguration)
     throws FileNotFoundException, XMLStreamException, ParseException {
   try {
     XMLEventReader stream = factory.createXMLEventReader(new FileInputStream(filepath));
     untilFirstStartElement(stream);
     OAIPMHParser parser = new OAIPMHParser(oaiServiceConfiguration);
     return parser.parse(stream);
   } catch (XMLStreamException e) {
     throw new ParseException(e);
   }
 }
 public static OAIPMHtype parse(
     InputStream instream,
     OAIServiceConfiguration<MetadataParser, AboutItemParser, DescriptionParser, AboutSetParser>
         oaiServiceConfiguration)
     throws ParseException {
   XMLEventReader stream;
   try {
     stream = factory.createXMLEventReader(instream);
     untilFirstStartElement(stream);
   } catch (XMLStreamException e) {
     throw new ParseException(e);
   }
   OAIPMHParser parser = new OAIPMHParser(oaiServiceConfiguration);
   return parser.parse(stream);
 }