public static boolean haveSameParent(Procedure<?> a, Procedure<?> b) {
    return a.hasParent() && b.hasParent() && (a.getParentProcId() == b.getParentProcId());
  }
@param a the first procedure to be compared.
@param b the second procedure to be compared.
@return true if the two procedures have the same parent
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java