Refactory and Spring Security integration