code: public Collection<Application> list(String name)
      {
          List<Application> ret = new ArrayList<Application>();
          Collection<Application> applications = list();
          for(Application application : applications)
          {
              if(name == null || application.getName().equals(name))
                  ret.add(application);
          }
          return ret;
      }
docs: Returns the set of applications for the given name.
  @param name The name of the applications
  @return The set of applications