for (String path : def.getPreviewClasspathEntries()) {
try {
URI cpUri = URI.createURI(path);
if (cpUri.isPlatformResource()) {
if (cpUri.lastSegment().equals("*")) {
cpUri = cpUri.trimSegments(1);
Path cpPath = new Path(cpUri.toPlatformString(true));
IWorkspaceRoot root = jp.getProject().getWorkspace().getRoot();
IFolder f = root.getFolder(cpPath);
if (f.exists()) {