} else if (is(commandParam, "associateGroups")) {
final CommandWrapper commandRequest = builder.associateGroupsToCenter(centerId).build();
result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
return this.toApiJsonSerializer.serialize(result);
} else if (is(commandParam, "disassociateGroups")) {
final CommandWrapper commandRequest = builder.disassociateGroupsFromCenter(centerId).build();
result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
return this.toApiJsonSerializer.serialize(result);
} else {
throw new UnrecognizedQueryParamException("command", commandParam, new Object[] { "activate", "generateCollectionSheet",
"saveCollectionSheet", "close", "associateGroups", "disassociateGroups" });