public List<FileEntry> getLibAndResourceEntries(User user, FileEntry scriptEntry, long revision) {
		String path = getFullPath(scriptEntry.getPath());
		List<FileEntry> fileList = newArrayList();
		List<FileEntry> libFileEntries;
		List<FileEntry> resourceFileEntries;

		if (isGitHubFileEntry(scriptEntry)) {
			try {
				libFileEntries = gitHubFileEntryRepository.findAll(path + "lib");
				resourceFileEntries = gitHubFileEntryRepository.findAll(path + "resources");
			} catch (IOException e) {
				throw new NGrinderRuntimeException(e);
			}
		} else {
			libFileEntries = fileEntryRepository.findAll(user, path + "lib/", revision, true);
			resourceFileEntries = fileEntryRepository.findAll(user, path + "resources/", revision, true);
		}

		for (FileEntry eachFileEntry : libFileEntries) {
			// Skip jython 2.7... it's already included.
			if (startsWithIgnoreCase(eachFileEntry.getFileName(), "jython-2.7.")
					|| startsWithIgnoreCase(eachFileEntry.getFileName(), "jython-standalone-2.7.")) {
				continue;
			}
			FileType fileType = eachFileEntry.getFileType();
			if (fileType.isLibDistributable()) {
				fileList.add(eachFileEntry);
			}
		}

		for (FileEntry eachFileEntry : resourceFileEntries) {
			FileType fileType = eachFileEntry.getFileType();
			if (fileType.isResourceDistributable()) {
				fileList.add(eachFileEntry);
			}
		}

		return fileList;
	}
Get all resources and lib entries belonging to the given user and
scriptEntry.

@param user        user
@param scriptEntry script entry
@param revision    revision of the script entry.
@return file entry list
ngrinder-controller/src/main/java/org/ngrinder/script/handler/ScriptHandler.java