public IClasspathContainer getWebAppLibrariesContainer(IProject webProject, boolean create) { IJavaProject jproj = JavaCore.create(webProject); IClasspathContainer container = null; IClasspathEntry entry = create ? null : getExistingContainer(jproj, WEB_APP_LIBS_PATH); if (entry != null || create) { try { container = JavaCore.getClasspathContainer(WEB_APP_LIBS_PATH, jproj); } catch (JavaModelException e) { J2EEPlugin.getDefault().getLogger().logError(e); } } return container; }