import java.io.IOException;
-public class UnregisterCommand implements LocalCommand {
+public class UnregisterCommand implements JsonRpcLocalCommand {
@Override
public String getName() {
final Namespace ns, final Manager m, final OutputWriter outputWriter
) throws CommandException {
try {
- if (ns.getBoolean("delete-account")) {
+ if (Boolean.TRUE.equals(ns.getBoolean("delete-account"))) {
m.deleteAccount();
} else {
m.unregister();