code: public void enableCors( boolean enableCors ) {
  
  		if( enableCors )
  			getProperties().put( ResourceConfig.PROPERTY_CONTAINER_RESPONSE_FILTERS, ResponseCorsFilter.class.getName());
  		else
  			getProperties().remove( ResourceConfig.PROPERTY_CONTAINER_RESPONSE_FILTERS );
  	}
docs: Enables or disables CORS.
  @param enableCors true to enable it