private int getProviderVersion(boolean isMinor) throws JMSException {
String version = getProviderVersion();
StringTokenizer tok = new StringTokenizer(version, ".");
if (tok.countTokens() < 2)
throw new JMSException(ME + ".getProviderVersion: exception when parsing version '" + version + "' since it has no separator", ErrorCode.INTERNAL_ILLEGALARGUMENT.getErrorCode());
try {
if (isMinor) tok.nextToken();
return Integer.parseInt(tok.nextToken().trim());
}
catch (Exception ex) {
throw new JMSException(ME + ".getProviderVersion: exception when parsing version '" + version + "' reason: " + ex.getMessage(), ErrorCode.INTERNAL_ILLEGALARGUMENT.getErrorCode());
}
}