rename getRequestId to getQueryParameter and make it work for any query parameter