*
* The implementation of this method should call addAdapter on the adapted
* object with the correct instance of the adapter.
*/
public INodeAdapter adapt(INodeNotifier notifier) {
INodeAdapter result = null;
// only adapt IDOMDocument
if (notifier instanceof IDOMDocument) {
// if already has an adapter, no need to recreate/initialize.
// Note: this means if "doctype" for DOM changes,