code: public static void readAndCheckVersion(ObjectInput input, int supportedVersion, Class<?> externalizedType) throws IOException {
  		int version = input.readInt();
  
  		if ( version != supportedVersion ) {
  			throw LOG.unexpectedKeyVersion( externalizedType, version, supportedVersion );
  		}
  	}
docs: Consumes the version field from the given input and raises an exception if the record is in a newer version,
  written by a newer version of Hibernate OGM.
  
  @param input the input to read from
  @param supportedVersion the type version supported by this version of OGM
  @param externalizedType the type to be unmarshalled
  
  @throws IOException if an error occurs while reading the input