Getting proxies from an object in Java

When I give an specific object from Mendix to a Java action the right proxies is also imported. But how do I get the right proxie imported if a give a non specific object? Because I would like to adapt my Java code batch delete routine to handle any two given objects (which have a reference to each other) I need the proxies to build up my xpath string for the retrieveXPathQueryEscaped. Or is there another way to get the right clean string of the relation between the two objects for the XPath build up? Regards, Ronald
1 answers

You never really need the proxies, they are just for convenience. You could just use the IMendixObject methods such as getType() and getMembers()