private static ReferenceType getClassType(String className) {
try {
ThreadReference threadRef = checkAndGetCurrentThread();
Debugger debugger = Debugger.getInstance();
SuspendThreadStack threadStack = SuspendThreadStack.getInstance();
StackFrame stackFrame = threadRef.frame(threadStack.getCurFrame());
CompilerContext ctx = debugger.getCompilerContext();
VirtualMachine vm = debugger.getVm();
List<ReferenceType> refTypes = vm.classesByName("java.lang."+className);
if (refTypes !=null && refTypes.size() >0 ) {
return refTypes.get(0);
}
String locSourcePath = stackFrame.location().sourcePath();