package eu.revevol.calendar.constants;

public class Params {
	public static final String SENDER_EMAIL_APPLICATION_NAME = "Device Lab Management";
        public static final String APPLICATION_ADDRESS	= "https://rev-cal.appspot.com"; // !!!! TO MODIFY !!!!
	public static final String APPLICATION_JSON	= "application/json";
        public static final String PROJECT_PLACEHOLDER	= "cal";
}

@@ -33,16 +33,71 @@
 tants;%0A%0A
+import com.google.appengine.api.utils.SystemProperty;%0A%0A
 public c
@@ -110,17 +110,20 @@
 arams %7B%0A
-%09
+    
 public s
@@ -198,20 +198,16 @@
 ement%22;%0A
-    
     publ
@@ -252,66 +252,40 @@
 RESS
-%09= %22https://rev-cal.appspot.com%22; // !!!! TO MODIFY !!!!%0A%09
+ = getApplicationAddress();%0A    
 publ
@@ -346,20 +346,16 @@
 /json%22;%0A
-    
     publ
@@ -406,10 +406,350 @@
  %22cal%22;%0A
+    %0A    %0A    private static String getApplicationAddress()%7B%0A        if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) %7B%0A            // do something that's production-only%0A            return %22https://%22+SystemProperty.applicationId+%22.appspot.com%22;%0A        %7D%0A        return %22http://localhost:8080%22;%0A    %7D%0A
 %7D%0A

fix #71