I think you can use Pipeline pipeline = muleContext.getRegistry().lookupObject(flowName)