code: public FireableEventType getEventId(EventLookupFacility eventLookupFacility,
  			Request request, boolean inDialogActivity) {
  
  		final String requestMethod = request.getMethod();
  		
  		// Cancel is always the same.
  		if (requestMethod.equals(Request.CANCEL))
  			inDialogActivity = false;
  
  		FireableEventType eventID = null;
  		if (inDialogActivity) {
  			eventID = getEventId(eventLookupFacility,
  					new StringBuilder(INDIALOG_REQUEST_EVENT_PREFIX).append(requestMethod).toString());
  			if (eventID == null) {
  				eventID = getEventId(eventLookupFacility,
  						new StringBuilder(INDIALOG_REQUEST_EVENT_PREFIX).append(SIP_EXTENSION_REQUEST_EVENT_NAME_SUFIX).toString());
  			}
  		} else {
  			eventID = getEventId(eventLookupFacility,
  					new StringBuilder(OUT_OF_DIALOG_REQUEST_EVENT_PREFIX).append(requestMethod).toString());
  			if (eventID == null) {
  				eventID = getEventId(eventLookupFacility,
  						new StringBuilder(OUT_OF_DIALOG_REQUEST_EVENT_PREFIX).append(SIP_EXTENSION_REQUEST_EVENT_NAME_SUFIX).toString());
  			}
  		}
  		return eventID;
  	}
docs: Retrieves the event id for a SIP Request event.
  
  @param eventLookupFacility
  @param request
  @param inDialogActivity
  if the event occurred in a dialog activity or not
  @return