Reimplement mapFromSource and mapToSource.