code: public void setEnableCors( boolean enableCors ) {
  
  		this.logger.fine( "CORS is now " + (enableCors ? "enabled" : "disabled") + ". Updating the REST resource." );
  		this.enableCors = enableCors;
  
  		if( this.app != null )
  			this.app.enableCors( enableCors );
  
  		if( this.authenticationFilter != null )
  			this.authenticationFilter.setEnableCors( enableCors );
  
  		try {
  			if( this.jerseyServlet != null )
  				this.jerseyServlet.reload();
  
  		} catch( Exception e ) {
  			Utils.logException( this.logger, e );
  		}
  	}
docs: Invoked by iPojo.
  @param enableCors the enableCors to set