It's write-attribute so that won't work, but agreed, AD.parse() should be used.