Project: mulestudio
Issue STUDIO-2376: Static Component in a poll is removed when generic endpoint connector is changed or removed in Message Flow 
I tested it in the following way: 1. Created two global endpoints a. name = “GE1”, address = “stdio://out” b. name = “GE2”, address = “file:///tmp/test” 2. Created a new flow. 3. Added a polling component with a frequency of 10 seconds. a. Added a static-component with return-data = “Hello World”. 4. Added a generic outbound-endpoint with a reference to GE1. 5. Ran the project and verified everything works properly. In the Flow designer: 1. Double-clicked on the generic outbound-endpoint. 2. Added something to the documentation tab 3. Saved the flow. Expected : Flow changed with documentation and everything remains intact Actual: Flow changed with documentation and static-compontent disapears The customer followed these steps: 1. Created two global endpoints. a. name = “GlobalEndpoint1”, address = “stdio://out” b. name = “GlobalEndpoint2”, address = “file:///tmp/test” 2. Created a new flow. 3. Added a polling component with a frequency of 10 seconds. a. Added a static-component with return-data = “Hello World”. 4. Added a generic outbound-endpoint with a reference to GlobalEndpoint1. 5. Ran the project and verified everything works properly. In the Flow designer: 1. Double-clicked on the generic outbound-endpoint. 2. Changed the endpoint reference to GlobalEndpoint2. 3. Saved the flow.
Story points: 3