class NoOpLockedResourceRepository implements LockedResourceRepository {

    @Override
    public PersistentPreparation tryLock(String preparationId, String userId, String displayName) {
        PersistentPreparation preparation = preparationRepository.get(preparationId, PersistentPreparation.class);
        if (preparation == null) {
            throw new TDPException(PREPARATION_DOES_NOT_EXIST, build().put("id", preparationId));
        }
        return preparation;
    }

    public  NoOpLockedResourceRepository();

}