added spring security support.