}
return wrap;
}
private ConversionException createConversionException(Throwable e) {
final ConversionException conversionException = new ConversionException(e);
StackTraceElement[] ste = e.getStackTrace();
if (ste!=null){
for(StackTraceElement top : ste){
String className=top.getClassName();
if (className.startsWith("org.apache.jmeter.")){
conversionException.add("first-jmeter-class", top.toString());
break;
}
}
}
return conversionException;