Adding remote api support for java

Put a space before '{'