an example of a REST service layer protected by spring security