protected void doExecute() throws InvalidProcessStateException, ProcessExecutionException {
Locations locations = locationsContext.consumeLocations();
locations.setBasedOnKey(locations.getVersionKey());
try {
locations.generateVersionKey();
} catch (IOException e) {
throw new ProcessExecutionException("Could not generate version key.", e);
}
try {