tools/slee-management-console/server/src/main/java/org/mobicents/slee/container/management/console/server/activity/ActivityServiceImpl.java
private static String toTTL(String lastAccess, long timeout) {
    Long ttl = timeout - ((System.currentTimeMillis() - Long.parseLong(lastAccess)) / 1000);
    return ttl.toString();
  }
private static String toTTL(String lastAccess, long timeout) {
    Long ttl = timeout - ((System.currentTimeMillis() - Long.parseLong(lastAccess)) / 1000);
    return ttl.toString();
  }
private static String toTTL ( String lastAccess , long timeout ) { Long ttl = timeout - ( ( System . currentTimeMillis ( ) - Long . parseLong ( lastAccess ) ) / 1000 ) ; return ttl . toString ( ) ; }
Calculates the Activity TTL

@param lastAccess time of last access to activity (in milliseconds)
@param timeout activity max idle time (in seconds)
@return a String with TTL value (in seconds)
Calculates the Activity TTL