New OpenedFile API based on file models.
Implement new OpenedFile API.