public static GuacamoleProtocolVersion parseVersion(String version) {

        // Validate format of version string
        Matcher versionMatcher = VERSION_PATTERN.matcher(version);
        if (!versionMatcher.matches())
            return null;

        // Parse version number from version string
        return new GuacamoleProtocolVersion(
            Integer.parseInt(versionMatcher.group(1)),
            Integer.parseInt(versionMatcher.group(2)),
            Integer.parseInt(versionMatcher.group(3))
        );

    }
Parse the String format of the version provided and return the
the enum value matching that version.  If no value is provided, return
null.

@param version
    The String format of the version to parse.

@return
    The enum value that matches the specified version, VERSION_1_0_0
    if no match is found, or null if no comparison version is provided.
guacamole-common/src/main/java/org/apache/guacamole/protocol/GuacamoleProtocolVersion.java