public GuidedDecisionTable52 upgrade(GuidedDecisionTable52 source) {
final GuidedDecisionTable52 destination = source;
for ( BaseColumn column : source.getExpandedColumns() ) {
DTColumnConfig52 dtColumn = null;
if ( column instanceof MetadataCol52 ) {
dtColumn = (DTColumnConfig52) column;
} else if ( column instanceof AttributeCol52 ) {
dtColumn = (DTColumnConfig52) column;
} else if ( column instanceof ConditionCol52 ) {
dtColumn = (DTColumnConfig52) column;
} else if ( column instanceof ActionCol52 ) {
dtColumn = (DTColumnConfig52) column;
}
if ( dtColumn instanceof LimitedEntryCol ) {
dtColumn = null;
}
if ( dtColumn instanceof BRLVariableColumn ) {
dtColumn = null;
}
if ( dtColumn != null ) {
final String legacyDefaultValue = dtColumn.defaultValue;
if ( legacyDefaultValue != null ) {
dtColumn.setDefaultValue( new DTCellValue52( legacyDefaultValue ) );
dtColumn.defaultValue = null;
}
}
}