private void checkForDuplicateIds(List<ChangeScript> scripts) throws DuplicateChangeScriptException {
long lastId = -1;
for (ChangeScript script : scripts) {
if (script.getId() == lastId) {
throw new DuplicateChangeScriptException("There is more than one change script with number " + lastId);
}
lastId = script.getId();
}