public static SubType getTypeFromInt(int value) {
            for (SubType subType : values()) {
                if (subType.value == value) {
                    return subType;
                }
            }
            return null;
        }
The roster item and owner have a mutual subscription.
xmppserver/src/main/java/org/jivesoftware/openfire/roster/RosterItem.java