}
private void deleteServiceGroup(String serviceGroupName) throws AxisFault {
AxisConfiguration axisConfig = getAxisConfig();
AxisServiceGroup asGroup = axisConfig.getServiceGroup(serviceGroupName);
if (asGroup == null) {
throw new AxisFault("Invalid service group name " + serviceGroupName);
}
if (SystemFilter.isFilteredOutService(asGroup)) {
String msg = "Cannot delete admin service group " + serviceGroupName;
log.error(msg);
throw new AxisFault(msg);
}
String fileName = null;
for (Iterator serviceIter = asGroup.getServices(); serviceIter.hasNext();) {
AxisService axisService = (AxisService) serviceIter.next();
URL fn = axisService.getFileName();
if (fn != null) {
fileName = fn.getPath();
}
// removing the service from axis configuration
axisConfig.removeService(axisService.getName());
}
// remove the service group from axis config and config context
AxisServiceGroup serviceGroup = axisConfig.removeServiceGroup(asGroup.getServiceGroupName());
if (serviceGroup != null) {
getConfigContext().removeServiceGroupContext(serviceGroup);
log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED,
fileName != null ? fileName : serviceGroupName));
} else {