remove spring security from design patterns
factory examples