private Collection<ViewColumn> transformViewToModel(Set<ColumnInfo> columns) {
return from(columns).transform(new Function<ColumnInfo, ViewColumn>() {
@Override
public ViewColumn apply(ColumnInfo input) {
final ColumnDefinition columnDefinition = columnDefinitionRepo.findOne(input.originalColumn);
return new ViewColumn(columnDefinition, input.order);
}
}).toImmutableSet();
}