*/
public static StatisticsCollector getStatisticsCollector(ServerContextInformation contextInfo) {
if (contextInfo != null && contextInfo.getServerState() == ServerState.INITIALIZED) {
Object o = contextInfo.getServerContext();
if (o instanceof ConfigurationContext) {
ConfigurationContext context = (ConfigurationContext) o;
SynapseEnvironment environment =
(SynapseEnvironment) context.getAxisConfiguration().getParameterValue(
SynapseConstants.SYNAPSE_ENV);
if (environment != null) {
return environment.getStatisticsCollector();
}
}