Java API template using Jersey and Spring 4