I was wondering how to convert java.net.URI to org.eclipse.emf.common.util.URI , as of now i am unable to do so.

the reason im asking is cause i'm woring with topcased and i'm trying to get all the resources and all the packages from the workspace so i can have access to all elements in all of the models currently opened in the workspace.

from some reason resource.getContents() etc.. doesnt work , i mean it does but it wont show all the packages only a few of them in the resourceset...

java.net.URI on the other hand does have all the information i need but i need to convert it to EMF URI...