Support new document loader API.