code: public void createBundles() throws Exception {
  
  		File tempDir = new File(tempDirPath);
  		if(!tempDir.exists()){
  			tempDir.mkdirs();
  		}else{
  			FileUtils.cleanDirectory(tempDir);
  		}
  		File destDir = new File(destDirPath);
  		if(!destDir.exists()){
  			destDir.mkdirs();
  		}else{
  			FileUtils.cleanDirectory(destDir);
  		}
  		
  		List<String> servlets = new ArrayList<String>();
  		if(servletsToInitialize != null){
  			
  			String[] servletNames = servletsToInitialize.split(SERVLET_NAME_SEPARATOR);
  			for (int i = 0; i < servletNames.length; i++) {
  				servlets.add(servletNames[i].trim());
  			}
  		}
  		
  		BundleProcessor bundleProcessor = new BundleProcessor();
  		bundleProcessor.process(rootPath, tempDirPath, destDirPath, springConfigFiles, servlets, generateCDNFiles, keepUrlMapping, servletAPIversion);
  	}
docs: Create the bundles.
  
  @throws Exception if an exception occurs