Added java part hopefully