/** * Lookup a Software product and return it or return a new one if not found. * * @param name the name of the software product to lookup * @return a new or existing Software product associated with this Company */ public Software lookupOrCreateSoftware(String name) { Software s = (Software) lnkSoftware.get(name); if (s == null) { s = new Software(name); lnkSoftware.put(s.getName(), s); } return s; }