public static RestrictionType getHigherPriority(RestrictionType restriction1, RestrictionType restriction2) {
        
        // If the second is higher than the first, return the second.
        if (restriction1.priority > restriction2.priority)
            return restriction2;
        
        // Return the first.
        return restriction1;
        
    }
Evaluates two restrictions, returning the higher priority of the two.

@param restriction1
    The first restriction to compare.

@param restriction2
    The second restriction to compare.

@return 
    Return which of the two restrictions is the higher-priority.
extensions/guacamole-auth-restrict/src/main/java/org/apache/guacamole/calendar/RestrictionType.java