else if (MovieFileResource.validate(fResource)) tempFr = new MovieFileResource();
else if (SoundFileResource.validate(fResource)) tempFr = new SoundFileResource();
else if (AnimationFileResource.validate(fResource)) tempFr = new AnimationFileResource();
else if (SharedFolderFileResource.validate(fResource)) tempFr = new SharedFolderFileResource();
// add a wiki copy
else if (WikiResource.validate(fResource)) tempFr = new WikiResource();
// add a podcast copy
else if (PodcastFileResource.validate(fResource)) tempFr = new PodcastFileResource(fResourceFileroot, fResource);
// add a blog copy
else if (BlogFileResource.validate(fResource)) tempFr = new BlogFileResource(fResourceFileroot, fResource);
// add a glossary copy
else if (GlossaryResource.validate(fResource)) tempFr = new GlossaryResource();
// the following types need unzippedDir
else if (fResource.getName().toLowerCase().endsWith(".zip")) {
File fUnzippedDir = unzipFileResource(tempFr);
if (fUnzippedDir == null) {
// in case of failure we forward the error message
throw new AddingResourceException("resource.error.zip");
}
if (TestFileResource.validate(fUnzippedDir)) tempFr = new TestFileResource();
else if (WikiResource.validate(fUnzippedDir)) tempFr = new WikiResource();
else if (PodcastFileResource.validate(fUnzippedDir)) tempFr = new PodcastFileResource(fResourceFileroot, fUnzippedDir);
else if (BlogFileResource.validate(fUnzippedDir)) tempFr = new BlogFileResource(fResourceFileroot, fUnzippedDir);
else if (SurveyFileResource.validate(fUnzippedDir)) tempFr = new SurveyFileResource();
// CP must be later entry... Test- and SurveyFileResource may contain
// imsmanifest.xml as well