@Override public int compareTo(SagaMethodMessageHandler o) { if (this.handlerMethod == null && o.handlerMethod == null) { return 0; } else if (this.handlerMethod == null) { return -1; } else if (o.handlerMethod == null) { return 1; } return handlerMethod.compareTo(o.handlerMethod); }