Source:
<code>public Boolean exec(Tuple input) { if (this.initialized == false) { try { this.init(); } catch (IOException e) { LOG.error("Could not initialize sync structures"); LOG.error(e); throw new IllegalStateException(); } catch (ParseException e) { <START> LOG.error("Could not initialize sync structures due Parsing error"); <END> LOG.error(e); throw new IllegalStateException(); } } if (input == null || input.size() == 0) return false; String monHost; String hostname; String service; String metric; String ts; try { hostname = (String) input.get(0); service = (String) input.get(1); metric = (String) input.get(2); monHost = (String) input.get(3); ts = (String) input.get(4); } catch (ClassCastException e) { LOG.error("Failed to cast input to approriate type"); LOG.error("Bad tuple input:" + input.toString()); LOG.error(e); throw new IllegalArgumentException(); } catch (IndexOutOfBoundsException e) { LOG.error("Malformed tuple schema"); LOG.error("Bad tuple input:" + input.toString()); LOG.error(e); throw new IllegalArgumentException(); } catch (ExecException e) { LOG.error("Execution error"); LOG.error(e); throw new IllegalArgumentException(); } String prof = mpsMgr.getProfiles().get(0); String aprof = apsMgr.getAvProfiles().get(0); if (this.filter == 1) { try { if (recMgr.isMonExcluded(monHost, ts) == true){ return false; } } catch (ParseException e) { LOG.error("Parsing Error on date"); LOG.error(e); throw new IllegalStateException(); } if (apsMgr.checkService(aprof, service) == false) return false; if (mpsMgr.checkProfileServiceMetric(prof, service, metric) == false) return false; } if (egMgr.checkEndpoint(hostname, service) == false) return false; ArrayList<String> groupnames = egMgr.getGroup(this.cfgMgr.egroup, hostname, service); for (String groupname : groupnames){ if (ggMgr.checkSubGroup(groupname) == true) return true; } return false; }</code><technical_language>"Could initialize sync structures due parsing error"</technical_language>

Target:
public Boolean exec(Tuple input) { if (this.initialized == false) { try { this.init(); } catch (IOException e) { LOG.error("Could not initialize sync structures"); LOG.error(e); throw new IllegalStateException(); } catch (ParseException e) { LOG.error("Could not initialize sync structures due to parsing error"); LOG.error(e); throw new IllegalStateException(); } } if (input == null || input.size() == 0) return false; String monHost; String hostname; String service; String metric; String ts; try { hostname = (String) input.get(0); service = (String) input.get(1); metric = (String) input.get(2); monHost = (String) input.get(3); ts = (String) input.get(4); } catch (ClassCastException e) { LOG.error("Failed to cast input to approriate type"); LOG.error("Bad tuple input:" + input.toString()); LOG.error(e); throw new IllegalArgumentException(); } catch (IndexOutOfBoundsException e) { LOG.error("Malformed tuple schema"); LOG.error("Bad tuple input:" + input.toString()); LOG.error(e); throw new IllegalArgumentException(); } catch (ExecException e) { LOG.error("Execution error"); LOG.error(e); throw new IllegalArgumentException(); } String prof = mpsMgr.getProfiles().get(0); String aprof = apsMgr.getAvProfiles().get(0); if (this.filter == 1) { try { if (recMgr.isMonExcluded(monHost, ts) == true){ return false; } } catch (ParseException e) { LOG.error("Parsing Error on date"); LOG.error(e); throw new IllegalStateException(); } if (apsMgr.checkService(aprof, service) == false) return false; if (mpsMgr.checkProfileServiceMetric(prof, service, metric) == false) return false; } if (egMgr.checkEndpoint(hostname, service) == false) return false; ArrayList<String> groupnames = egMgr.getGroup(this.cfgMgr.egroup, hostname, service); for (String groupname : groupnames){ if (ggMgr.checkSubGroup(groupname) == true) return true; } return false; }