AuthenticationSession newAuthSession(JobExecutionContext context) {
String user = getKey(context, AbstractSchedulerService.USER_KEY);
String rolesStr = getKey(context, AbstractSchedulerService.ROLES_KEY);
String[] roles = Iterables.toArray(
Splitter.on(",").split(rolesStr), String.class);
return new SimpleSession(user, roles);
}