setUsersByUsernameMapping(new UsersByUsernameMapping(getDataSource())); setAuthoritiesByUsernameMapping(new AuthoritiesByUsernameMapping( getDataSource()));
this.usersByUsernameMapping = new UsersByUsernameMapping(getDataSource()); this.authoritiesByUsernameMapping = new AuthoritiesByUsernameMapping(getDataSource());
    protected void initMappingSqlQueries() {        setUsersByUsernameMapping(new UsersByUsernameMapping(getDataSource()));        setAuthoritiesByUsernameMapping(new AuthoritiesByUsernameMapping(                getDataSource()));    }