private IClasspathContainer getClasspathContainer(final String name, final File jarFileOrDir) throws JavaModelException {
List<IClasspathEntry> list = new ArrayList<IClasspathEntry>();
if(isDefined(name))
{
UserLibrary userLibrary = new UserLibraryManager().getUserLibrary(name);
Collections.addAll(list, userLibrary.getEntries());
}
return createClasspathContainer(name, getClasspathEntries(jarFileOrDir,list));
}