ServiceAssembly sa = deployer.getServiceAssembly(name);
if (sa == null) {
throw ManagementSupport.failure("stop", "Service assembly does not exist: " + name);
}
try {
sa.stop();
return ManagementSupport.createSuccessMessage("Service assembly stopped", name);
} catch (Throwable e) {
throw ManagementSupport.failure("stopServiceAssembly", name, e);
}
}