/** * Gets the elapsed duration since this application was initialized. * * @return the uptime */ public Duration getUptime() { final DateTime startup = getStartupDate(); if (null != startup) { return Duration.elapsed(Time.valueOf(startup.toDate())); } return Duration.NONE; }