Removed cleanUp() method from SecurityContext to avoid erasing of class information