String subPath = requestPath.substring(requestPath.indexOf(serviceName) +
serviceName.length() + 1);
file = new File(serviceResourceFolder.getAbsolutePath() + "/www/"
+ subPath);
if (file.exists()) {
MIMEType2FileExtensionMap map = CustomUIServiceComponent.getExtensionMap();
if (map != null) {
response.setContentType(map.getMIMEType(file));
}
MashupUtils.writeFile(httpServletResponse, file);
return;
}
}