private void redeployUpdatedConfiguration(ConfigurationManager manager, Artifact previous, Target target) throws Exception, NoSuchConfigException {
// Send the new configuration to the server
// if the configuration is an in-place one, then redeploys
// in in-place mode.
TargetImpl impl = (TargetImpl) target;
AbstractName storeName = impl.getAbstractName();
Boolean inPlaceConfiguration = (Boolean) kernel.invoke(storeName, IS_IN_PLACE_CONFIGURATION_METH, new Object[]{previous}, IS_IN_PLACE_CONFIGURATION_SIG);
commandContext.setInPlace(inPlaceConfiguration.booleanValue());
doDeploy(target, false);
Artifact configID = Artifact.create(getResultTargetModuleIDs()[0].getModuleID());
LifecycleResults results = manager.reloadConfiguration(previous, configID.getVersion());