@Override public void registerCallback(final ApiMethodCallback callback, final boolean requiresModel) throws RemoteException { if (DEBUG) { Log.d(TAG, "Register API callback " + callback); } final APICallInfoData b = new APICallInfoData(); b.set(lastOperation); if (b.hasData()) { if (DEBUG) { Log.d(TAG, "Report last operation " + b.operation); } callback.reportLastOperation(b.token, b.operation, b.responseData); } b.set(pending); if (b.hasData()) { callback.reportPending(b.token, b.operation); } apiCallbacks.register(callback, requiresModel); }