public IEntity GetEntity(Node node) { if (null == node.Entity) { throw CompilerErrorFactory.InvalidNode(node); } return node.Entity; }