*/
class CompensateScopeGenerator extends DefaultActivityGenerator {
private static final CompensateGeneratorMessages __cmsgs = MessageBundle.getMessages(CompensateGeneratorMessages.class);
public void compile(OActivity output, Activity src) {
CompensateScopeActivity compSrc = (CompensateScopeActivity) src;
if (compSrc.getScopeToCompensate() == null)
throw new CompilationException(__cmsgs.errScopeToCompensateUnspecfied());
((OCompensate)output).compensatedScope = _context.resolveCompensatableScope(compSrc.getScopeToCompensate());
}