support up to FOSRestBundle 1.*