migrating security context to annotations from xml