Document interceptor framework