Component component = deployer.getComponent(name);
if (component == null) {
throw ManagementSupport.failure("shutdown", "Component does not exist: " + name);
}
try {
component.shutDown();
return ManagementSupport.createSuccessMessage("Component shut down", name);
} catch (Throwable e) {
throw ManagementSupport.failure("shutdownComponent", name, e);
}
}