package beaform.utilities;

import java.util.Date;

public class SystemTime {

	private static final TimeSource defaultSrc = new TimeSource(){
		@Override
		public long getSystemTime() {
			return System.currentTimeMillis();
		}

	};

	private static TimeSource source;

	public static void reset() {
		source = null;
	}

	public static long getAsLong() {
		return getCurrentTimeSource().getSystemTime();
	}

	public static Date getAsDate() {
		return new Date(getAsLong());
	}

	private static TimeSource getCurrentTimeSource() {
		return (source == null) ? defaultSrc : source;
	}

	public static void setTimeSource(TimeSource timeSource) {
		source = timeSource;
	}
}

@@ -25,32 +25,8 @@
 s;%0A%0A
-import java.util.Date;%0A%0A
 publ
@@ -382,78 +382,8 @@
 %09%7D%0A%0A
-%09public static Date getAsDate() %7B%0A%09%09return new Date(getAsLong());%0A%09%7D%0A%0A
 %09pri

Remove unused code