public static boolean sendEndEvent ( Object filter , FilterDescriptor descriptor , String id , FilterEventParameters parameters ) throws FilterException { FilterElementDescriptor elementDescriptor = descriptor . getElement ( id ) ; if ( elementDescriptor != null && elementDescriptor . getEndMethod ( ) != null ) { sendEvent ( elementDescriptor . getEndMethod ( ) , elementDescriptor , filter , parameters ) ; } else if ( filter instanceof UnknownFilter ) { ( ( UnknownFilter ) filter ) . endUnknwon ( id , parameters ) ; } else { return false ; } return true ; }
Call passed end event if possible .