Source:
<code>public void linkAccount(Long sourceId, String username, String password, String properties) { CoreService service = ServiceCreator.createCoreService(); final LinkAccountRequest input = new LinkAccountRequest(); input.accessCode = ACCESS_CODE; input.session = SessionController.get().getSessionForApiCall(); input.username = username; input.password = password; input.properties = properties; DataSource source = new DataSource(); source.id = sourceId; input.source = source; service.linkAccount(input, new AsyncCallback<LinkAccountResponse>() { @Override public void onSuccess(LinkAccountResponse output) { if (output.status == StatusType.StatusTypeSuccess) { rows.add(output.account); addLinkedAccountsToLookup(Arrays.asList(output.account)); addDataSourceToLookup(Arrays.asList(output.account.source)); if (pager == null) { pager = new Pager(); pager.count = (long) Integer.MAX_VALUE; pager.sortDirection = SortDirectionType.SortDirectionTypeDescending; pager.totalCount = Long.valueOf(0); } <START> pager.totalCount = pager.totalCount + Long.valueOf(1); <END> pager.start = Long.valueOf(0); mCount = pager.totalCount; updateRowCount((int) mCount, true); updateRowData(0, rows.subList(0, Math.min(pager.count.intValue(), pager.totalCount.intValue()))); } EventController.get().fireEventFromSource(new LinkAccountSuccess(input, output), LinkedAccountController.this); } @Override public void onFailure(Throwable caught) { EventController.get().fireEventFromSource(new LinkAccountFailure(input, caught), LinkedAccountController.this); } }); }</code><technical_language>This right. a boxing point of view a logical one</technical_language>

Target:
public void linkAccount(Long sourceId, String username, String password, String properties) { CoreService service = ServiceCreator.createCoreService(); final LinkAccountRequest input = new LinkAccountRequest(); input.accessCode = ACCESS_CODE; input.session = SessionController.get().getSessionForApiCall(); input.username = username; input.password = password; input.properties = properties; DataSource source = new DataSource(); source.id = sourceId; input.source = source; if (pager == null) { pager = new Pager(); pager.count = Long.valueOf(Integer.MAX_VALUE); pager.start = Long.valueOf(0); pager.sortDirection = SortDirectionType.SortDirectionTypeDescending; pager.totalCount = Long.valueOf(0); } service.linkAccount(input, new AsyncCallback<LinkAccountResponse>() { @Override public void onSuccess(LinkAccountResponse output) { if (output.status == StatusType.StatusTypeSuccess) { rows.add(output.account); addLinkedAccountsToLookup(Arrays.asList(output.account)); addDataSourceToLookup(Arrays.asList(output.account.source)); pager.totalCount = Long.valueOf(pager.totalCount.longValue() + 1); mCount = pager.totalCount; updateRowCount((int) mCount, true); updateRowData(0, rows.subList(0, Math.min(pager.count.intValue(), pager.totalCount.intValue()))); } EventController.get().fireEventFromSource(new LinkAccountSuccess(input, output), LinkedAccountController.this); } @Override public void onFailure(Throwable caught) { EventController.get().fireEventFromSource(new LinkAccountFailure(input, caught), LinkedAccountController.this); } }); }