Source:
<code>protected void onBind() { super.onBind(); <START> logger.info(this.getClass().toString() + " onBind"); END> currentErrataModel = getModelProvider().getModel(); updateModel(currentErrataModel); getView().getTotalSecurity().setCommand(currentErrataModel.getShowSecurityCommand()); getView().getTotalBugFix().setCommand(currentErrataModel.getShowBugsCommand()); getView().getTotalEnhancement().setCommand(currentErrataModel.getShowEnhancementsCommand()); registerHandler(getView().getTotalSecurity().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { getView().getTotalSecurity().getCommand().execute(); } })); registerHandler(getView().getTotalBugFix().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { getView().getTotalBugFix().getCommand().execute(); } })); registerHandler(getView().getTotalEnhancement().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { getView().getTotalEnhancement().getCommand().execute(); } })); currentErrataModel.addErrataCountsChangeListener(new IEventListener<EventArgs>() { @Override public void eventRaised(Event<? extends EventArgs> ev, Object sender, EventArgs args) { logger.info(this.getClass().toString() + ": bus published message that the counts changed. update view."); ErrataCounts counts = currentErrataModel.getErrataCounts(); getView().showCounts(counts); } }); currentErrataModel.addErrorMessageChangeListener(new IEventListener<PropertyChangedEventArgs>() { @Override public void eventRaised(Event<? extends PropertyChangedEventArgs> ev, Object sender, PropertyChangedEventArgs args) { logger.info(this.getClass().toString() + ": bus published message that there was a query error. update view."); getView().showErrorMessage(SafeHtmlUtils.fromString(currentErrataModel.getMessage())); } }); }</code><technical_language>debug/trace/remove</technical_language>

Target:
protected void onBind() { super.onBind(); currentErrataModel = getModelProvider().getModel(); updateModel(currentErrataModel); getView().getTotalSecurity().setCommand(currentErrataModel.getShowSecurityCommand()); getView().getTotalBugFix().setCommand(currentErrataModel.getShowBugsCommand()); getView().getTotalEnhancement().setCommand(currentErrataModel.getShowEnhancementsCommand()); registerHandler(getView().getTotalSecurity().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { getView().getTotalSecurity().getCommand().execute(); } })); registerHandler(getView().getTotalBugFix().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { getView().getTotalBugFix().getCommand().execute(); } })); registerHandler(getView().getTotalEnhancement().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { getView().getTotalEnhancement().getCommand().execute(); } })); currentErrataModel.addErrataCountsChangeListener(new IEventListener<EventArgs>() { @Override public void eventRaised(Event<? extends EventArgs> ev, Object sender, EventArgs args) { ErrataCounts counts = currentErrataModel.getErrataCounts(); getView().showCounts(counts); } }); currentErrataModel.addErrorMessageChangeListener(new IEventListener<PropertyChangedEventArgs>() { @Override public void eventRaised(Event<? extends PropertyChangedEventArgs> ev, Object sender, PropertyChangedEventArgs args) { getView().showErrorMessage(SafeHtmlUtils.fromString(currentErrataModel.getMessage())); } }); }