containsNode = function (m) {
        return m !== layerDefModel && m !== nodeDefModel && m.containsNode(nodeDefModel);
      }
Creates a new analysis node on a particular layer.
It's assumed to be created on top of an existing node.
@param {Object} nodeAttrs
@param {Object} layerDefModel - instance of layer-definition-model
@return {Object} instance of analysis-definition-node-model