GCP-6186 middleware method