}
@Override
public Map<String, Object> getCachedVariables() {
if(Context.getCommandContext() != null) {
throw new ActivitiCdiException("Cannot work with cached variables in an activiti command.");
}
return getScopedAssociation().getCachedVariables();
}