https://www.javacodegeeks.com/2015/02/secure-jersey-rest-services-spring-security-basic-authentication.html
How to secure Jersey REST services with Spring Security and Basic authentication