String message = "Unable to initialize the Synapse Configuration : Can not find the ";
log.fatal(message + "Synapse Environment");
throw new SynapseException(message + "Synapse Environment");
}
SynapseEnvironment synapseEnv = (SynapseEnvironment) synEnv.getValue();
/** Initializing autoscaleIn and autoscaleOut Mediators.**/
LoadBalancerConfiguration lbConfig = AutoscalerTaskDSHolder.getInstance().getWholeLoadBalancerConfig();
// check whether autoscaling is enabled
if (lbConfig.getLoadBalancerConfig().isAutoscaleEnabled()) {
// get the main sequence mediator
SequenceMediator mainSequence =
(SequenceMediator) synapseEnv.getSynapseConfiguration().getSequence("main");
// iterate through its child mediators
for (Mediator child : mainSequence.getList()) {
// find the InMediator