code: public static String getStatusForItem(Long lastActivity) {
  
          if (lastActivity.longValue() < CmsSessionsTable.INACTIVE_LIMIT) {
              return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROADCAST_COLS_STATUS_ACTIVE_0);
          }
          return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROADCAST_COLS_STATUS_INACTIVE_0);
      }
docs: Gets the status text from given session.
  
  @param lastActivity miliseconds since last activity
  @return status string