case DISABLED:
return DeclarativeAgendaOption.DISABLED;
}
}
if (option instanceof AssertBehaviorOption) {
AssertBehaviorOption legacyOption = (AssertBehaviorOption)option;
switch (legacyOption) {
case IDENTITY:
return EqualityBehaviorOption.IDENTITY;
case EQUALITY:
return EqualityBehaviorOption.EQUALITY;
}
}
if (option instanceof org.drools.conf.EventProcessingOption) {
org.drools.conf.EventProcessingOption legacyOption = (org.drools.conf.EventProcessingOption)option;
switch (legacyOption) {
case CLOUD:
return EventProcessingOption.CLOUD;
case STREAM:
return EventProcessingOption.STREAM;
}
}
if (option instanceof org.drools.conf.IndexLeftBetaMemoryOption) {
org.drools.conf.IndexLeftBetaMemoryOption legacyOption = (org.drools.conf.IndexLeftBetaMemoryOption)option;
switch (legacyOption) {
case YES:
return IndexLeftBetaMemoryOption.YES;
case NO:
return IndexLeftBetaMemoryOption.NO;
}
}
if (option instanceof org.drools.conf.IndexPrecedenceOption) {
org.drools.conf.IndexPrecedenceOption legacyOption = (org.drools.conf.IndexPrecedenceOption)option;
switch (legacyOption) {
case PATTERN_ORDER:
return IndexPrecedenceOption.PATTERN_ORDER;
case EQUALITY_PRIORITY:
return IndexPrecedenceOption.EQUALITY_PRIORITY;
}
}
if (option instanceof org.drools.conf.IndexRightBetaMemoryOption) {
org.drools.conf.IndexRightBetaMemoryOption legacyOption = (org.drools.conf.IndexRightBetaMemoryOption)option;
switch (legacyOption) {
case YES:
return IndexRightBetaMemoryOption.YES;
case NO:
return IndexRightBetaMemoryOption.NO;
}
}
if (option instanceof org.drools.conf.MBeansOption) {
org.drools.conf.MBeansOption legacyOption = (org.drools.conf.MBeansOption)option;
switch (legacyOption) {
case ENABLED:
return MBeansOption.ENABLED;
case DISABLED:
return MBeansOption.DISABLED;
}
}
if (option instanceof org.drools.conf.MaxThreadsOption) {
org.drools.conf.MaxThreadsOption legacyOption = (org.drools.conf.MaxThreadsOption)option;
return MaxThreadsOption.get(legacyOption.getMaxThreads());
}
if (option instanceof org.drools.conf.PermGenThresholdOption) {
org.drools.conf.PermGenThresholdOption legacyOption = (org.drools.conf.PermGenThresholdOption)option;
return PermGenThresholdOption.get(legacyOption.getThreshold());
}
if (option instanceof org.drools.conf.RemoveIdentitiesOption) {
org.drools.conf.RemoveIdentitiesOption legacyOption = (org.drools.conf.RemoveIdentitiesOption)option;
switch (legacyOption) {
case YES: