}
private void returnResource( final String urlPath, final OutputStream out ) throws Exception {
final IParameterProvider pathParams = parameterProviders.get( Parameter.PATH ); //$NON-NLS-1$
final IResourceLoader resLoader = CdfEngine.getEnvironment().getResourceLoader();
final String maxAge = resLoader.getPluginSetting( CdfContentGenerator.class, "settings/max-age" );
final HttpServletResponse response = (HttpServletResponse) pathParams.getParameter( "httpresponse" );
if ( maxAge != null && response != null ) {
response.setContentType( MimeTypes.getMimeType( urlPath ) );
response.setHeader( "Cache-Control", "max-age=" + maxAge );
}