class ExecutionVertexVersioner {

	public boolean isModified(final ExecutionVertexVersion executionVertexVersion) {
		final Long currentVersion = executionVertexToVersion.get(executionVertexVersion.getExecutionVertexId());
		Preconditions.checkState(currentVersion != null,
			"Execution vertex %s does not have a recorded version",
			executionVertexVersion.getExecutionVertexId());
		return currentVersion != executionVertexVersion.getVersion();
	}

}