Added protocol to java
Fixed protocol