public static String getServiceName ( MuleEventContext event ) { // Mule 2.2 implementation // Service service = (event == null)? null : event.getService(); FlowConstruct service = ( event == null ) ? null : event . getFlowConstruct ( ) ; String name = ( service == null ) ? "" : service . getName ( ) ; return name ; }
Different implementations for retrieving the service name from a MuleEventContext - object in Mule 2 . 2 . x and Mule