String packageName = sourceFile.getAbsolutePath().substring(basePath.length() + 1, staticDirPos - 1);
packageName = packageName.replace(File.separator, ".");
String fileName = sourceFile.getAbsolutePath().substring(staticDirPos + ClassPathStaticDispatcher.STATIC_DIR_NAME.length());
File targetFile = new File(classPathStaticDir, packageName + fileName);
// Only do this if it does not already exist
if (targetFile.exists() && targetFile.lastModified() >= sourceFile.lastModified()) {
if (isLogDebugEnabled()) logDebug("Skipping static file from filename::" + sourceFile + " - does already exist", null);
} else {
targetFile.getParentFile().mkdirs();
BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(sourceFile));
BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(targetFile));