@Override public boolean supports(final CloudTrailEvent event){
  final CloudTrailEventData eventData=event.getEventData();
  final String eventSource=eventData.getEventSource();
  final String eventName=eventData.getEventName();
  return eventSource.equals(EC2_EVENTS) && eventName.startsWith(DELETE);
}

@ Override public boolean supports ( final CloudTrailEvent event ) { final CloudTrailEventData eventData = event . getEventData ( ) ; final String eventSource = eventData . getEventSource ( ) ; final String eventName = eventData . getEventName ( ) ; return eventSource . equals ( EC2_EVENTS ) && eventName . startsWith ( DELETE ) ; }
we use this as a filter for events .
