public static CacheConfigResponse create(DistributionManager dm,
      InternalDistributedMember recipient, int cacheId, byte attributeCode, int newValue) {
    CacheConfigResponse m = new CacheConfigResponse();
    m.setRecipient(recipient);
    try {
      InternalCache c = (InternalCache) CacheFactory.getInstanceCloseOk(dm.getSystem());
      if (cacheId != System.identityHashCode(c)) {
        m.info = null;
      } else {
        switch (attributeCode) {
          case RemoteGemFireVM.LOCK_TIMEOUT_CODE:
            c.setLockTimeout(newValue);
            break;
          case RemoteGemFireVM.LOCK_LEASE_CODE:
            c.setLockLease(newValue);
            break;
          case RemoteGemFireVM.SEARCH_TIMEOUT_CODE:
            c.setSearchTimeout(newValue);
            break;
          default:
            Assert.assertTrue(false, "Unknown config code: " + attributeCode);
        }
      }
      m.info = new RemoteCacheInfo(c);
    } catch (CancelException ignore) {
      m.info = null;

    } catch (Exception ex) {
      m.exception = ex;
      m.info = null;
    }
    return m;
  }
Returns a {@code CacheConfigResponse} that will be returned to the specified recipient.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/CacheConfigResponse.java