protected function _writeConfigCore($path = null, $configTempl = null, $configValue = null, $configComment = null) {
		if (empty($path) || empty($configTempl) || empty($configValue)) {
			return false;
		}

		$oFile = new File($path . 'Config' . DS . 'core.php');
		if (!$oFile->exists()) {
			return false;
		}

		$contents = $oFile->read();
		$pattern = '/^[\s]*(?:[\/]{2}|)[\s]*(' . sprintf(preg_quote($configTempl, '/'), '.*') . '[\s]*;)/m';
		$configStr = sprintf($configTempl, $configValue) . ';';
		if (preg_match($pattern, $contents, $match)) {
			$result = str_replace($match[0], "\t" . $configStr, $contents);
		} else {
			$result = $contents;
			if (!empty($configComment)) {
				$result .= sprintf("\n/**\n * %s\n */", $configComment);
			}
			$result .= "\n\t" . $configStr . "\n";
		}

		return $oFile->write($result);
	}