}
private void preloadGreenlistFiles(String greenlistFile, Map<String, XmlvmResource> resources)
{
UniversalFile greenList= UniversalFileCreator.createFile(new File(greenlistFile));
LibraryLoader libraryLoader= new LibraryLoader(arguments);
UniversalFile defaultGreenList= UniversalFileCreator.createFile("/lib/greenlist.txt", "lib/greenlist.txt");
for (UniversalFile file : new UniversalFile[] { greenList, defaultGreenList })
{
Set<String> classes= ClassListLoader.loadGreenlist(file);
if (classes != null)
{ // If any green list exists, force inclusion of its contents
for (String className : classes)
{
if (!resources.containsKey(className))
{
XmlvmResource resource= libraryLoader.load(className);
if (resource != null)
{
resources.put(resource.getFullName(), resource);
}
}