public static boolean isCurrentVersionEqualTo(Integer expectedVersion){
  String[] parsedVersion=parseVersion(getCurrentVersion());
  if (parsedVersion == null) {
    return false;
  }
  return expectedVersion.equals(Integer.valueOf(parsedVersion[0]));
}

public static boolean isCurrentVersionEqualTo ( Integer expectedVersion ) { String [ ] parsedVersion = parseVersion ( getCurrentVersion ( ) ) ; if ( parsedVersion == null ) { return false ; } return expectedVersion . equals ( Integer . valueOf ( parsedVersion [ 0 ] ) ) ; }
checks if the currently deployed openam has the same version number as the expected version number .
