Authenticating databases with Struts 2 and Spring Security