void (Payload payload) { if (myVariableName.contains(BY_ID)) { //id instead of frame_id payload.add(getThreadId()).add(myVariableName); } else { super.buildPayload(payload); payload.add(myVariableName); } }