Added java folder and codes

Java code for Partner Rest API