- Sone sone = getSone(parameters, "Sone", true, true);
- getCore().unlockSone(sone);
- return new Response("SoneUnlocked", new SimpleFieldSetBuilder().put("Sone", sone.getId()).get());
+ Optional<Sone> sone = getSone(parameters, "Sone", true, true);
+ getCore().unlockSone(sone.get());
+ return new Response("SoneUnlocked", new SimpleFieldSetBuilder().put("Sone", sone.get().getId()).get());