Component componentGBean = getComponentGBean(
reference.getAssocialtedServiceUnitName().getArtifactId(),
reference.getAssocialtedServiceUnitName());
ServiceUnitManager serviceUnitManager =
componentGBean.getComponent().getServiceUnitManager();
serviceUnitManager.undeploy(reference.getServiceUnitName(),
reference.getServiceUnitPath());
} catch (Exception e) {
throw new RuntimeException(e);
}
}