public String getAppId() { String appId = getParameter(APP_ID); if (appId != null && appId.equals(APP_SUBSTITUTION_TOKEN)) { return token.getAppId(); } else { return appId; } }