public static AddStatListenerResponse create(DistributionManager dm,
      InternalDistributedMember recipient, long resourceId, String statName) {
    AddStatListenerResponse m = new AddStatListenerResponse();
    m.setRecipient(recipient);
    GemFireStatSampler sampler = null;
    sampler = dm.getSystem().getStatSampler();
    if (sampler != null) {
      m.listenerId = sampler.addListener(recipient, resourceId, statName);
    }
    return m;
  }
Returns a <code>AddStatListenerResponse</code> that will be returned to the specified
recipient. The message will contains a copy of the local manager's system config.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/AddStatListenerResponse.java