public static CodeActivityPublicEnvironmentAccessor Create(CodeActivityMetadata metadata)
        {
            metadata.ThrowIfDisposed();
            
            AssertIsCodeActivity(metadata.CurrentActivity);

            CodeActivityPublicEnvironmentAccessor result = new CodeActivityPublicEnvironmentAccessor();
            result.metadata = metadata;
            return result;
        }