Working on java API