Source:
<code>public void process(String name, InputStream inputStream) { switchUser(); try { ExtensionManager.registerExtension(new WebAuthCode()); ExtensionManager.registerExtension(new DepartmentalSubUnit()); ExtensionManager.registerExtension(new DepartmentThirdLevelApproval()); ExtensionManager.registerExtension(new Division()); ExtensionManager.registerExtension(new DivisionWideEmail()); ExtensionManager.registerExtension(new CourseSubUnit()); ExtensionManager.registerExtension(new PublicView()); ExtensionManager.registerExtension(new ModuleApproval()); ExtensionManager.registerExtension(new SupervisorApproval()); ExtensionManager.registerExtension(new OtherDepartment()); ExtensionManager.registerExtension(new Sessions()); ExtensionManager.registerExtension(new Bookable()); ExtensionManager.registerExtension(new TermCode()); ExtensionManager.registerExtension(new TermLabel()); ExtensionManager.registerExtension(new EmployeeName()); ExtensionManager.registerExtension(new EmployeeEmail()); ExtensionManager.registerExtension(new DaisyIdentifier()); OverrideManager.registerOverride(Course.class, new OxcapCourse()); OverrideManager.registerOverride(Presentation.class, new OxcapPresentation()); Catalog catalog = new Catalog(); SAXBuilder builder = new SAXBuilder(); Document document = builder.build(inputStream); catalog.fromXml(document); data = new XcriOxcapPopulatorInstanceData(contentHostingService, getSiteId(), name, simpleDateFormat.format(catalog.getGenerated())); Provider[] providers = catalog.getProviders(); for (Provider provider : providers) { provider(provider, true); } for (Provider provider : providers) { provider(provider, false); } data.finalise(); } catch (IOException e) { <START> e.printStackTrace(); <END> } catch (JDOMException e) { e.printStackTrace(); } catch (InvalidElementException e) { e.printStackTrace(); } }</code><technical_language>exception logged</technical_language>

Target:
public void process(String name, InputStream inputStream) { switchUser(); try { ExtensionManager.registerExtension(new WebAuthCode()); ExtensionManager.registerExtension(new DepartmentalSubUnit()); ExtensionManager.registerExtension(new DepartmentThirdLevelApproval()); ExtensionManager.registerExtension(new Division()); ExtensionManager.registerExtension(new DivisionWideEmail()); ExtensionManager.registerExtension(new CourseSubUnit()); ExtensionManager.registerExtension(new PublicView()); ExtensionManager.registerExtension(new ModuleApproval()); ExtensionManager.registerExtension(new SupervisorApproval()); ExtensionManager.registerExtension(new OtherDepartment()); ExtensionManager.registerExtension(new Sessions()); ExtensionManager.registerExtension(new Bookable()); ExtensionManager.registerExtension(new TermCode()); ExtensionManager.registerExtension(new TermLabel()); ExtensionManager.registerExtension(new EmployeeName()); ExtensionManager.registerExtension(new EmployeeEmail()); ExtensionManager.registerExtension(new DaisyIdentifier()); OverrideManager.registerOverride(Course.class, new OxcapCourse()); OverrideManager.registerOverride(Presentation.class, new OxcapPresentation()); Catalog catalog = new Catalog(); SAXBuilder builder = new SAXBuilder(); Document document = builder.build(inputStream); catalog.fromXml(document); data = new XcriOxcapPopulatorInstanceData(contentHostingService, getSiteId(), name, simpleDateFormat.format(catalog.getGenerated())); Provider[] providers = catalog.getProviders(); for (Provider provider : providers) { provider(provider, true); } for (Provider provider : providers) { provider(provider, false); } data.endTasks(); } catch (IOException e) { log.warn("IOException thrown", e); } catch (JDOMException e) { log.warn("JDOMException thrown", e); } catch (InvalidElementException e) { log.warn("InvalidElementException thrown", e); } }