<BUG>Set<String> studyAccessions = parseReceiptSection(reader, "STUDY");Set<String> errors = parseReceiptErrors(reader);return new ENAReceipt(experimentAccessions, sampleAccessions, runAccessions, studyAccessions, errors);</BUG><CONTEXT>InputStream stream = IOUtils.toInputStream(receipt, "UTF-8");XPathReader reader = new XPathReader(stream);Set<String> experimentAccessions = parseReceiptSection(reader, "EXPERIMENT");Set<String> sampleAccessions = parseReceiptSection(reader, "SAMPLE");Set<String> runAccessions = parseReceiptSection(reader, "RUN");<extra_id_0>} catch (IOException e) {</CONTEXT>
Set<String> infoMessages = parseReceiptInfoMessages(reader);return new ENAReceipt(experimentAccessions, sampleAccessions, runAccessions, studyAccessions, infoMessages, errors);