private static void addClassExclusionFilter(EventRequest request, String pattern) {
    if (request instanceof ExceptionRequest) {
      ((ExceptionRequest)request).addClassExclusionFilter(pattern);
    }
    else if (request instanceof MethodEntryRequest) {
      ((MethodEntryRequest)request).addClassExclusionFilter(pattern);
    }
    else if (request instanceof MethodExitRequest) {
      ((MethodExitRequest)request).addClassExclusionFilter(pattern);
    }
    else if (request instanceof WatchpointRequest) {
      ((WatchpointRequest)request).addClassExclusionFilter(pattern);
    }
  }
private static void addClassExclusionFilter(EventRequest request, String pattern)