for (OScope.Variable v : variables) {
v.declaringScope = implicitScope;
implicitScope.addLocalVariable(v);
}
if (source instanceof ScopeActivity) {
Activity scopeChild = ((ScopeActivity) source).getChildActivity();
if (scopeChild == null)
throw new CompilationException(__cmsgs.errEmptyScope().setSource(source));
implicitScope.activity = compile(scopeChild);
if (source.getScope() != null && source.getScope().getAtomicScope() != null) {
implicitScope.atomicScope = source.getScope().getAtomicScope().booleanValue();