code: public void queryLiveness(ActivityHandle arg0) {
          // if the activity is not in the map end it, its a leak
          if (!activities.contains(arg0)) {
              resourceAdaptorContext.getSleeEndpoint().endActivity(arg0);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  javax.slee.resource.ResourceAdaptor#queryLiveness(javax.slee.resource
  .ActivityHandle)