private void checkSus(ServiceUnitDesc[] sus) throws Exception {
if (sus != null) {
for (int i = 0; i < sus.length; i++) {
String suName = sus[i].getIdentification().getName();
String componentName = sus[i].getTarget().getComponentName();
Component component = deployer.getComponent(componentName);
if (component == null) {
throw ManagementSupport.failure("deploy", "Target component " + componentName
+ " for service unit " + suName + " is not installed");
}
if (!component.getCurrentState().equals(LifeCycleMBean.STARTED)) {
throw ManagementSupport.failure("deploy", "Target component " + componentName
+ " for service unit " + suName + " is not started");
}
if (component.getComponent().getServiceUnitManager() == null) {
throw ManagementSupport.failure("deploy", "Target component " + componentName
+ " for service unit " + suName + " does not accept deployments");
}
if (isDeployedServiceUnit(componentName, suName)) {