throw new GeniePreconditionException("No application id entered. Unable to delete.");
}
LOG.debug("Called with id " + id);
final Application app = this.applicationRepo.findOne(id);
if (app == null) {
throw new GenieNotFoundException("No application with id " + id + " exists.");
}
if (app.getCommands() != null) {
final Set<Command> commands = new HashSet<>();
commands.addAll(app.getCommands());