//validating the content of the zip file.
File zipFile = ((DeferredFileOutputStream) fileData.getFileItem().
getOutputStream()).getFile();
fileData.getFileItem().write(zipFile);
tempFiles.add(zipFile);
String[] files = archiveManipulator.check(zipFile.getAbsolutePath());
boolean jsFile = false;
boolean resourceFolder = false;
//validates the structure of zip file. i.e. zip file shoud contains only one
//.js file in the root folder and no other file types, but directories.
for (String file : files) {