How to get the ICosmosWorks interface instance?