diff --git a/src/org/openbravo/retail/posterminal/term/DeliveryPaymentMode.java b/src/org/openbravo/retail/posterminal/term/DeliveryPaymentMode.java
index 3bbcd2384..b455ee9bf 100644
--- a/src/org/openbravo/retail/posterminal/term/DeliveryPaymentMode.java
+++ b/src/org/openbravo/retail/posterminal/term/DeliveryPaymentMode.java
@@ -12,6 +12,7 @@ import javax.servlet.ServletException;
 
 import org.codehaus.jettison.json.JSONException;
 import org.codehaus.jettison.json.JSONObject;
+import org.openbravo.base.exception.OBException;
 import org.openbravo.dal.core.OBContext;
 import org.openbravo.dal.security.OrganizationStructureProvider;
 import org.openbravo.dal.service.OBDal;
@@ -27,6 +28,10 @@ public class DeliveryPaymentMode extends JSONTerminalProperty {
     JSONObject result = new JSONObject();
     OBContext.setAdminMode(true);
 
+    if (true) {
+      throw new OBException("Test Error");
+    }
+
     try {
       Organization currentOrg = OBContext.getOBContext().getCurrentOrganization();
       String deliveryPaymentMode = currentOrg.getObrdmDeliverypaymentmode();
