Support case when dom node is not available
Optimize auto mapping