}
Checkpoint recoveryCheckpoint = new Checkpoint();
recoveryCheckpoint.getCheckpointDir().setBase(getCheckpointsDir());
recoveryCheckpoint.getCheckpointDir().setPath(selectedCheckpoint);
recoveryCheckpoint.getCheckpointDir().setConfigurer(appCtx.getBean(ConfigPathConfigurer.class));
recoveryCheckpoint.afterPropertiesSet();
setRecoveryCheckpoint(recoveryCheckpoint);
Map<String,Checkpointable> toSetRecovery = appCtx.getBeansOfType(Checkpointable.class);
for(Checkpointable c : toSetRecovery.values()) {
c.setRecoveryCheckpoint(recoveryCheckpoint);