@Requires(whitelist = Capability.MACHINE_MAINTAINER)
@Override
public Response endMaintenance(Hosts hosts, SessionKey session) {
return okResponse(Result.endMaintenanceResult(
new EndMaintenanceResult()
.setStatuses(maintenance.endMaintenance(hosts.getHostNames()))));
}