code: public String getPublishGroupName(List<RESOURCE> resources, GroupAge age) {
  
          long groupDate = getDateLastModified(resources.get(0));
          String groupName;
          switch (age) {
              case young:
                  groupName = Messages.get().getBundle(m_locale).key(
                      Messages.GUI_GROUPNAME_SESSION_1,
                      new Date(groupDate));
  
                  break;
              case medium:
                  groupName = Messages.get().getBundle(m_locale).key(Messages.GUI_GROUPNAME_DAY_1, new Date(groupDate));
                  break;
              case old:
              default:
                  groupName = Messages.get().getBundle(m_locale).key(Messages.GUI_GROUPNAME_EVERYTHING_ELSE_0);
                  break;
          }
          return groupName;
      }
docs: Returns the localized name for a given publish group based on its age.<p>
  
  @param resources the resources of the publish group
  @param age the age of the publish group
  
  @return the localized name of the publish group