Throw wxceptions from native code

1. Find Java classes from native side using a reflection like API
2. Remove local references.