add direct java support
add direct java support