static int[] decodeVersion(String version) {
        int[] answer = new int[] {0 , 0};
        String [] versionString = version.split("\\.");
        answer[0] = Integer.parseInt(versionString[0]);
        answer[1] = Integer.parseInt(versionString[1]);
        return answer;
    }
Returns a two-digit version identifier based on the value of the 'version' attribute of the element that the
provided parser is currently on. The value of the 'version' attribute is expected to match 'MAJOR.MINOR' where
both MAJOR and MINOR are integer values.

The version number defaults to 0.0. It is returned as an array of integers, with the first element in the array
being the MAJOR version number.

If the version that is being reported is larger than the version supported by this implementation, the version
number that is supported by this implementation is returned instead of the reported version number.

@param xpp An XML parser
@return an integer array that has a size of two.
xmppserver/src/main/java/org/jivesoftware/openfire/session/Session.java