1. A method of generating a deploy document describing an optimized flow that corresponds to a user defined flow, said method comprising: creating a connections mapping table wherein a connection in said optimized flow is associated with at least one connection in said user defined flow.