diff -r 7bdc07f52133 src-core/src/org/openbravo/base/HttpBaseServlet.java
--- a/src-core/src/org/openbravo/base/HttpBaseServlet.java	Mon Jul 16 12:38:57 2018 +0530
+++ b/src-core/src/org/openbravo/base/HttpBaseServlet.java	Fri Jul 27 09:10:18 2018 +0200
@@ -20,6 +20,7 @@
 import java.sql.PreparedStatement;
 import java.sql.SQLException;
 import java.sql.Statement;
+import java.util.concurrent.TimeUnit;
 
 import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
@@ -72,6 +73,7 @@
   private FopFactory fopFactory;
 
   protected ConfigParameters globalParameters;
+  private static int cnt;
 
   /**
    * Loads basic configuration settings that this class and all that extend it require to function
@@ -178,7 +180,12 @@
    */
   public void initialize(HttpServletRequest request, HttpServletResponse response)
       throws IOException, ServletException {
+
     strDireccion = HttpBaseUtils.getLocalAddress(request);
+    if ("GeneralAccountingReports".equals(getClass().getSimpleName())) {
+      if (++cnt % 2 == 0)
+        log4j.info("original base url " + strDireccion);
+    }
     String strActualUrl = HttpBaseUtils.getLocalHostAddress(request);
     if (log4j.isDebugEnabled())
       log4j.debug("Server name: " + strActualUrl);
@@ -201,6 +208,14 @@
       log4j.debug("xmlEngine.strReplaceWith: " + strReplaceWith);
     xmlEngine.strReplaceWith = strReplaceWith;
 
+    if ("GeneralAccountingReports".equals(getClass().getSimpleName()) && cnt % 2 == 0) {
+      log4j.info("Sleep");
+      try {
+        TimeUnit.SECONDS.sleep(5);
+      } catch (InterruptedException e) {
+      }
+      log4j.info("go ahead - current base url " + strDireccion);
+    }
   }
 
   /**
