if (name != null)
{
state = getComponentMappedState(comp, runtimeMO, name, runStateMapper);
if (comp instanceof MutableManagedComponent)
{
MutableManagedComponent mcomp = MutableManagedComponent.class.cast(comp);
mcomp.setRunState(state);
}
}
}
return state;
}