I just copied it from the rest plugin. :)  Will change, though.