ClassPrepareRequest (ClassPrepareRequestor requestor, String pattern) { if (myEventRequestManager == null) { // detached already return null; } ClassPrepareRequest classPrepareRequest = myEventRequestManager.createClassPrepareRequest(); classPrepareRequest.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD); if (!StringUtil.isEmpty(pattern)) { classPrepareRequest.addClassFilter(pattern); classPrepareRequest.putProperty(CLASS_NAME, pattern); } registerRequestInternal(requestor, classPrepareRequest); return classPrepareRequest; }