public static TimestampService getTimestampService() {
if (hostAndPort == null)
throw new IllegalStateException("TCP server is not started");
if (timestampService == null)
timestampService = new TimestampService(hostAndPort);
return timestampService;
}