class IntentPartitionManager implements IntentPartitionService {

    @Override
    public boolean isMine(Key intentKey) {
        return Objects.equals(leadershipService.getLeadership(getPartitionPath(getPartitionForKey(intentKey)))
                                               .leaderNodeId(),
                              localNodeId);
    }

}