private int findRelevantElement(StackTraceElement[] trace) {
		if (trace.length == 0) {
			return -1;
		} else if (included.size() == 0) {
			return 0;
		}
		int firstIncluded = -1;
		for (String myIncluded : included) {
			for (int i = 0; i < trace.length; i++) {
				StackTraceElement ste = trace[i];
				if (ste.getClassName().startsWith(myIncluded)) {
					if (i < firstIncluded || firstIncluded == -1) {
						firstIncluded = i;
						break;
					}
				}
			}
		}
		if (firstIncluded >= 0 && trace[firstIncluded].getClassName().equals("net.sf.odinms.tools.performance.CPUSampler$SamplerThread")) { // don't sample us
			return -1;
		}
		return firstIncluded;
	}