code: public static void setDeploymentModeConfiguration(final Application application)
  	{
  		application.getMarkupSettings().setStripComments(true);
  		// The resources are never polled. This are properties, html,
  		// css, js files.
  		application.getResourceSettings().setResourcePollFrequency(null);
  		application.getResourceSettings()
  			.setJavaScriptCompressor(new DefaultJavaScriptCompressor());
  		// set the behavior if an missing resource is found...
  		application.getResourceSettings().setThrowExceptionOnMissingResource(false);
  		// debug settings...
  		application.getDebugSettings().setComponentUseCheck(false);
  		application.getDebugSettings().setAjaxDebugModeEnabled(false);
  		application.getDebugSettings().setDevelopmentUtilitiesEnabled(false);
  
  		application.getDebugSettings().setOutputMarkupContainerClassName(false);
  		application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(false);
  		application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(false);
  	}
docs: Sets the deployment settings for deployment mode for the given application.
  
  @param application
  the application to set the settings