final ResourceResponse resourceResponse = new ResourceResponse();
final WebExternalResourceStream webExternalResourceStream =
new WebExternalResourceStream(path);
resourceResponse.setContentType(webExternalResourceStream.getContentType());
resourceResponse.setLastModified(webExternalResourceStream.lastModifiedTime());
resourceResponse.setFileName(path);
resourceResponse.setWriteCallback(new WriteCallback()
{
@Override
public void writeData(final Attributes attributes) throws IOException