Added spring security and metrics.