private static Integer getVersion(final String versionData) {
        String[] vArray = versionData.split("\\s");
        int version = 1;
        if (vArray.length == 2
                && vArray[0].equals("version")
                && vArray[1].matches("[0-9]+")) {
            Integer.parseInt(vArray[1]);
        } else {
            Logger.getLogger(SMDConverter.class.getName()).log(Level.WARNING,
                    "no version was found, setting version to default: 1");
        }
        return version;
    }