break;
}
}
}
if (axisService == null) {
throw new RuleServiceManagementException("There is no a service " +
"with the given name : " + serviceName, log);
}
}
String path = (String) axisService.getParameterValue(RuleConstants.RULE_SERVICE_PATH);
String fileExtension = path.substring(path.lastIndexOf(".") + 1);
RuleServiceAdminHandler adminHandler = getRuleServiceAdminHandler(fileExtension);
OMElement omElement =
adminHandler.getRuleService(getAxisConfig(), serviceName);
omElement.addAttribute(
OM_FACTORY.createOMAttribute(
RuleConstants.ATT_EXTENSION, NULL_NS, fileExtension));
return omElement;
} catch (AxisFault axisFault) {
throw new RuleServiceManagementException("Error while accessing " +
"the service with the name : " + serviceName, axisFault, log);
}
}