/** * Create a new Anonymous Axis service for OUT-IN as default MEP * * @param synCfg the Synapse Configuration * @param axisCfg the Axis2 configuration * @param serviceKey key for the service * @return an anonymous service named with the given QoS key */ private static AxisService createAnonymousService(SynapseConfiguration synCfg, AxisConfiguration axisCfg, String serviceKey, boolean setCallback) { try { if (setCallback) { return createAxisServiceWithCallback(synCfg, axisCfg, serviceKey); } else { return createAxisServiceWithoutCallback(synCfg, axisCfg, serviceKey); } } catch (AxisFault e) { handleException("Error occurred while creating an anonymous service for QoS : " + serviceKey, e); } return null; }