private String getSuperParentId(WorkflowJob workflow) throws OozieClientException {

        WorkflowJob current = workflow;
        workflowDepth = 0;

        while (hasParent(current)) {
            if (isCoordinatorJob(current.getParentId())) {
                return current.getParentId();
            }
            current = oozieClient.getJobInfo(current.getParentId());

            workflowDepth++;
        }

        return current.getId();
    }
This class provides methods to load information specific to the Oozie scheduler.
app/com/linkedin/drelephant/schedulers/OozieScheduler.java