private void cacheMarket(IMarket market) {
   String marketKey = computeMarketKey(market);
   cache(marketKey, market);
   List<? extends ICategory> categories = market.getCategory();
   for (ICategory category : categories) {
     cacheCategory(category);
   }
 }
 private String computeSearchKey(
     String prefix, IMarket market, ICategory category, String queryText) {
   return prefix
       + ":"
       + (market == null ? "" : market.getId())
       + ":"
       + (category == null ? "" : category.getId())
       + ":"
       + (queryText == null
           ? ""
           : queryText
               .trim()); //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$//$NON-NLS-5$
                         // //$NON-NLS-6$
 }
 private String computeMarketKey(IMarket market) {
   if (market.getId() != null) {
     return "Market:" + market.getId(); // $NON-NLS-1$
   }
   return null;
 }