Tokens manager will allow for easy manipulation of tokens from groovy script.
Spring context should allow for accessing arbitrary beans if needed in future.