code: private DocumentReferenceTranslator getDocRefTranslator(Object value) {
  
          if (value instanceof org.apache.xmlbeans.XmlObject)
              return (DocumentReferenceTranslator) VariableTranslator.getTranslator(org.apache.xmlbeans.XmlObject.class.getName());
          else if (value instanceof org.w3c.dom.Document)
              return (DocumentReferenceTranslator) VariableTranslator.getTranslator(org.w3c.dom.Document.class.getName());
          else if (value instanceof com.centurylink.mdw.xml.XmlBeanWrapper)
              return (DocumentReferenceTranslator) VariableTranslator.getTranslator(com.centurylink.mdw.xml.XmlBeanWrapper.class.getName());
          else if (value instanceof groovy.util.Node)
              return (DocumentReferenceTranslator) VariableTranslator.getTranslator(groovy.util.Node.class.getName());
          else
            return null;
      }
docs: Special handling is only for XML doc types.  TODO: More general.