'Resolves DecisionEnd nodes'

def get_oozie_child(self, name=None):

    child = self.get_link(name).child.get_full_node()
    if (child and (child.node_type == DecisionEnd.node_type)):
        child = child.get_oozie_child('to')
    return child
