ruleServiceAdminStub.uploadRuleFile(serviceName,
fileName, dataHandler);
ServiceDescription ruleServiceDescription = getRuleServiceDescription(request);
if (ruleServiceDescription != null) {
ruleServiceDescription.setExtension(RuleConstants.RULE_SERVICE_ARCHIVE_EXTENSION);
RuleServiceExtensionDescription extensionDescription =
(RuleServiceExtensionDescription) ruleServiceDescription.getServiceExtensionDescription();
RuleSetDescription ruleSetDescription =
extensionDescription.getRuleSetDescription();
if (ruleSetDescription != null) {
ruleSetDescription.setPath(fileName);
ruleSetDescription.setKey("");
ruleSetDescription.setRuleSource(null); //remove rule source
}