add spring security support.