docs: @Override
      public String[] getCacheIDsInMemory(String cacheInstance, String pattern) throws javax.management.AttributeNotFoundException {
  
          // Get the cache for this cacheInstance
          DCache cache1 = getCache(cacheInstance);
          // Check that the input pattern is a valid regular expression
          Pattern cpattern = checkPattern(pattern);
  
          List<String> matchSet = new ArrayList<String>(10);
          int i = 0;
          Enumeration vEnum = cache1.getAllIds();
          while (vEnum.hasMoreElements()) {
              Object key = vEnum.nextElement();
              String skey = key.toString();
              boolean matches = checkMatch(cpattern, skey);
              if (matches) {
                  matchSet.add(skey);
                  i++;
                  //if (tc.isDebugEnabled()) {
                  //  Tr.debug(tc,"getCacheIDsInMemory:  Cache element # " + i +" = " + skey + " matches the pattern " + pattern + " for cacheInstance = " + cacheInstance);
                  //}    
              }
          }
          if (tc.isDebugEnabled())
              Tr.debug(tc, "getCacheIDsInMemory" + "/" + cacheInstance + "/" + "Exiting. Number of matches found = " + i);
  
          //Allocate output String array #entries matched and return
          //Convert to string array and return 
          String[] cids = matchSet.toArray(new String[matchSet.size()]);
          return cids;
      }