Adapted to vraptor 3.5.2