OMElement ruleServiceXML =
ServiceDescriptionSerializer.serializeToRuleServiceConfiguration(
ruleServiceDescription, NULL_NS,
AXIOM_XPATH_SERIALIZER, CONFIGURATION_EXTENSION_SERIALIZER);
ruleServiceXML.build();
ruleServiceXML.serialize(os);
} catch (Exception e) {
throw new RuleServiceManagementException("Cannot write to the rule service file : " +
ruleFile, e, log);
}