Source:
<code>public TransactionParser getParser(KXmlParser parser) { String namespace = parser.getNamespace(); String name = parser.getName(); if (LedgerXmlParsers.STOCK_XML_NAMESPACE.matches(namespace)) { if (stockParser == null) { throw new RuntimeException("Couldn't process Stock transaction without initialization!"); } req(); return stockParser.getParser(parser); <START> } else if (name != null && name.toLowerCase().equals("case")) { <END> if (caseParser == null) { throw new RuntimeException("Couldn't receive Case transaction without initialization!"); } req(); return caseParser.getParser(parser); } else if (name != null && name.toLowerCase().equals("registration")) { if (userParser == null) { throw new RuntimeException("Couldn't receive User transaction without initialization!"); } req(); return userParser.getParser(parser); } else if (name != null && name.toLowerCase().equals("fixture")) { req(); return fixtureParser.getParser(parser); } else if (name != null && name.toLowerCase().equals("message")) { } else if (name != null && name.toLowerCase().equals("sync") && namespace != null && "<LINK_0>".equals(namespace)) { return new TransactionParser<String>(parser) { @Override public void commit(String parsed) throws IOException { } @Override public String parse() throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException { this.checkNode("sync"); this.nextTag("restore_id"); syncToken = parser.nextText(); if (syncToken == null) { throw new InvalidStructureException("Sync block must contain restore_id with valid ID inside!", parser); } syncToken = syncToken.trim(); return syncToken; } }; } return null; }</code><technical_language>remove null check have: "case".equalsIgnoreCase(name)</technical_language>

Target:
public TransactionParser getParser(KXmlParser parser) { String namespace = parser.getNamespace(); String name = parser.getName(); if (LedgerXmlParsers.STOCK_XML_NAMESPACE.matches(namespace)) { if (stockParser == null) { throw new RuntimeException("Couldn't process Stock transaction without initialization!"); } req(); return stockParser.getParser(parser); } else if ("case".equalsIgnoreCase(name)) { if (caseParser == null) { throw new RuntimeException("Couldn't receive Case transaction without initialization!"); } req(); return caseParser.getParser(parser); } else if ("registration".equalsIgnoreCase(name)) { if (userParser == null) { throw new RuntimeException("Couldn't receive User transaction without initialization!"); } req(); return userParser.getParser(parser); } else if ("fixture".equalsIgnoreCase(name)) { req(); return fixtureParser.getParser(parser); } else if ("message".equalsIgnoreCase(name)) { } else if ("sync".equalsIgnoreCase(name) && "<LINK_0>".equals(namespace)) { return new TransactionParser<String>(parser) { @Override public void commit(String parsed) throws IOException { } @Override public String parse() throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException { this.checkNode("sync"); this.nextTag("restore_id"); String syncToken = parser.nextText(); if (syncToken == null) { throw new InvalidStructureException("Sync block must contain restore_id with valid ID inside!", parser); } syncToken = syncToken.trim(); sandbox.setSyncToken(syncToken); return syncToken; } }; } return null; }