public ArchiveRuleBean(ArchiveRules.Rule archiveRule) {
this.archiveRule = archiveRule;
}
public void setAction(String action) throws ConfigurationException {
Action newAction = Action.ARCHIVE;
try {
newAction = Action.valueOf(action.trim().toUpperCase(Locale.ENGLISH));
} catch (IllegalArgumentException iae) {
logger.error("failed to set archive rule action. action is set to an illegal value {action='"+action+"'}");
logger.info("archive rule is automatically set to archive the message (error recovery)");