// if the first child of InMediator isn't an AutoscaleInMediator
if (!(inSequence.getList().get(0) instanceof AutoscaleInMediator)) {
// we gonna add it!
inSequence.getList().add(0, new AutoscaleInMediator());
if (log.isDebugEnabled()) {
log.debug("Added Mediator: " + inSequence.getChild(0) + "" +
" to InMediator. Number of child mediators in InMediator" + " is " +
inSequence.getList().size() + ".");
}