java interop examples