String serverName = (String)
messageContext.getProperty(SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);
if(serverName != null && messageContext instanceof Axis2MessageContext) {
AxisConfiguration configuration = ((Axis2MessageContext)messageContext).
getAxis2MessageContext().
getConfigurationContext().getAxisConfiguration();
String myServerName = getAxis2ParameterValue(configuration,
SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);