@Override public boolean preAuthorization(AdminCommandContext context) { config = CLIUtil.chooseConfig(domain, target, context.getActionReport()); if (config == null) { return false; } securityService = config.getSecurityService(); if ( ! ensureRealmIsNew(context.getActionReport())) { return false; } return true; }