Utils for FOSRestBundle