public HttpCarbonMessage cloneCarbonMessageWithOutData ( ) { HttpCarbonMessage newCarbonMessage = getNewHttpCarbonMessage ( ) ; Map < String , Object > propertiesMap = this . getProperties ( ) ; propertiesMap . forEach ( newCarbonMessage :: setProperty ) ; return newCarbonMessage ; }
Copy Message properties and transport headers .