API to Add Component to Stream
![](http://jazz.net/_images/myphoto/e8250a08fb459e657521c1406f1f67ea.jpg)
Hi,
I want to Add a Component to a main Stream.
We only have one main Stream called MAIN (Project Area IVP)
My problem is that I have a main Stream called "MAIN" with project area "IVP" and also one called "MAIN" with project Area 'Test". If I want to Add component 'X' to main Stream "MAIN" with project area "IVP" using a java API
it adds component 'X' to main Stream "MAIN" with project area "Test"
Can anyone help me ?
Thanks
Stef
Accepted answer
![](http://jazz.net/_images/myphoto/e8250a08fb459e657521c1406f1f67ea.jpg)
I think the best advice to give here is a naming convention.
Other than that, you will likely have to figure out a difference that you can use to decide which stream is which. For example you could try to figure out who the owner of the stream is, or its privacy settings. See
com.ibm.team.scm.client.IFlowNodeConnection.getOwner() and com.ibm.team.scm.client.IWorkspaceConnection.getReadScope()