package bj.pranie.util;

import java.util.Calendar;
import java.util.TimeZone;

/**
 * Created by noon on 03.02.17.
 */
public class TimeUtil {
    private static TimeZone timeZone = TimeZone.getTimeZone("Europe/Warsaw");
    private static Calendar calendar = Calendar.getInstance(timeZone);

    public static String getTime() {
        return calendar.get(Calendar.HOUR_OF_DAY) + ":"+ calendar.get(Calendar.MINUTE);
    }
}

@@ -417,11 +417,104 @@
 );%0A    %7D
+%0A%0A    public static Calendar getCalendar()%7B%0A        return (Calendar) calendar.clone();%0A    %7D
 %0A%7D%0A

Change util to get clone of calendar.