Add handlerid to the rest handler.