Support Cloud Endpoints APIs by introducing terrible hacks