in src/main/java/org/apache/sling/junit/remote/testrunner/RemoteExecutionException.java [48:58]
public static RemoteExecutionException getExceptionFromTrace(String trace) throws IOException {
// first line of trace is something like "java.lang.RuntimeException: Wrapper exception"
BufferedReader reader = new BufferedReader(new StringReader(trace));
final String firstLine;
try {
firstLine = reader.readLine();
} finally {
reader.close();
}
return new RemoteExecutionException(firstLine, trace);
}