Minor refacto in Selection API.
Document factory method for empty document.