* @deprecated because the OC proxy object is never released.
* Use {@link Rococoa#proxy} instead.
*/
@Deprecated
public static ID wrap(Object javaObject) {
OCInvocationCallbacks callbacks = new OCInvocationCallbacks(javaObject);
ID idOfOCProxy = Foundation.newOCProxy(callbacks);
// idOfOCProxy is owned by us, and we have to release it at some stage
return new ProxyID(idOfOCProxy, callbacks);
}