Update RemoteEndpoint.java