public boolean onEvent(ActionResult result){
synchronized (this) {
    String requestId=result.getResponseInfo().mRequestId;
    if (requestId == null) {
      return false;
    }
    boolean eventRemoved=mRequestIds.remove(requestId);
    if (eventRemoved) {
      Class key=null;
      for (      Class type : mLastRequestIdByType.keySet()) {
        if (requestId.equals(mLastRequestIdByType.get(type))) {
          key=type;
          break;
        }
      }
      if (key != null) {
        mLastRequestIdByType.remove(key);
      }
    }
    return eventRemoved;
  }
}

public boolean onEvent ( ActionResult result ) { synchronized ( this ) { String requestId = result . getResponseInfo ( ) . mRequestId ; if ( requestId == null ) { return false ; } boolean eventRemoved = mRequestIds . remove ( requestId ) ; if ( eventRemoved ) { Class key = null ; for ( Class type : mLastRequestIdByType . keySet ( ) ) { if ( requestId . equals ( mLastRequestIdByType . get ( type ) ) ) { key = type ; break ; } } if ( key != null ) { mLastRequestIdByType . remove ( key ) ; } } return eventRemoved ; } }
required method to be called if you are using requestkeeper to funnel your requests .
