public function checkMaintenance($ipAddress = null, $exit = true) {
		if ($ipAddress === null) {
			$ipAddress = env('REMOTE_ADDRESS');
		}
		if (!$this->isMaintenanceMode($ipAddress)) {
			return;
		}
		$Response = new Response();
		$Response->statusCode(503);
		$Response->header('Retry-After', DAY);
		$body = __d('setup', 'Maintenance work');
		$template = APP . 'Template' . DS . 'Error' . DS . $this->template;
		if (file_exists($template)) {
			$body = file_get_contents($template);
		}

		$Response->body($body);
		if ($exit) {
			$Response->send();
			exit;
		}
	}