Optional<TransMemory> transMemory = transMemoryDAO.getBySlug(slug);
if (transMemory.isPresent()) {
transMemoryDAO.makeTransient(transMemory.get());
return "Translation memory '" + slug + "' deleted";
} else {
throw new EntityMissingException(slug);
}
} finally {
lockManagerServiceImpl.release(tmLock);
}
}