Add validation for bean existence
When copying the flow, add the reference to "it" if it's missing