if (!outputFile.exists() || (System.currentTimeMillis()-outputFile.lastModified() > 1800 * 1000))
{
try{
AddressTester tester = new AddressTester(scriptUri);
try {
if (!tester.URLAvailable()){
log.error("ProxyWriter::rewrite(): The adress " + scriptUri + " is not available. ");
return scriptUri;
}
HttpURLConnection httpUrlConnect = (HttpURLConnection) tester.getConnection();
httpUrlConnect.connect();