if (option instanceof DumpDirOption) {
DumpDirOption legacyOption = (DumpDirOption)option;
return org.kie.internal.builder.conf.DumpDirOption.get(legacyOption.getDirectory());
}
if (option instanceof EvaluatorOption) {
EvaluatorOption legacyOption = (EvaluatorOption)option;
return org.kie.internal.builder.conf.EvaluatorOption.get(legacyOption.getName(),
(EvaluatorDefinition)legacyOption.getEvaluatorDefinition());
}
if (option instanceof KBuilderSeverityOption) {
KBuilderSeverityOption legacyOption = (KBuilderSeverityOption)option;
return org.kie.internal.builder.conf.KBuilderSeverityOption.get(legacyOption.getName(),
legacyOption.getSeverity().toString());
}
if (option instanceof LanguageLevelOption) {
LanguageLevelOption legacyOption = (LanguageLevelOption)option;
switch (legacyOption) {
case DRL5: