aeron-cluster/src/main/java/io/aeron/cluster/RecordingLog.java
public Entry findLastTerm()
    {
        for (int i = entries.size() - 1; i >= 0; i--)
        {
            final Entry entry = entries.get(i);
            if (ENTRY_TYPE_TERM == entry.type)
            {
                return entry;
            }
        }

        return null;
    }
public Entry findLastTerm()
    {
        for (int i = entries.size() - 1; i >= 0; i--)
        {
            final Entry entry = entries.get(i);
            if (ENTRY_TYPE_TERM == entry.type)
            {
                return entry;
            }
        }

        return null;
    }
Find the last leadership term in the recording log.

@return the last leadership term in the recording log.