Modeling Stream Communications in Component-based Applications