} else {
throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, result.getMessage()));
}
TraceTypeHelper selectedTraceType = TmfTraceTypeUIUtils.selectTraceType(location.toOSString(), null, null);
TmfTraceTypeUIUtils.setTraceType(traceFolder, selectedTraceType);
<BUG>final TmfProjectElement projectElement = TmfProjectRegistry.getProject(project, true);
final TmfTraceFolder tracesFolder = projectElement.getTracesFolder();
final List<TmfTraceElement> traces = tracesFolder.getTraces();
TmfTraceElement found = null;</BUG>
for (TmfTraceElement candidate : traces) {

} else {
throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, result.getMessage()));
}
TraceTypeHelper selectedTraceType = TmfTraceTypeUIUtils.selectTraceType(location.toOSString(), null, null);
TmfTraceTypeUIUtils.setTraceType(traceFolder, selectedTraceType);
final TmfProjectElement projectElement = TmfProjectRegistry.getProject(project, true);
TmfTraceElement found = null;
final TmfTraceFolder tracesFolder = projectElement.getTracesFolder();
if (tracesFolder != null) {
final List<TmfTraceElement> traces = tracesFolder.getTraces();
for (TmfTraceElement candidate : traces) {
