public boolean isHdivStateNecessary(final HDIVConfig config) { if (isJS() || !internal || config.isStartPage(urlWithoutContextPath, method) || hasExtensionToExclude(config)) { return false; } boolean validateParamLessUrls = config.isValidationInUrlsWithoutParamsActivated(); // if url is a link (or a GET method form) and has not got parameters, we do not have to include HDIV's state if (isGetMethod() && !validateParamLessUrls && !containsParams()) { return false; } urlObfuscation = config.isUrlObfuscation(); return true; }