How can I connect Watson Conversation to my webapp (github) using liberty.java?
<p>How can I connect watson conversation to my webapp(github) using liberty.java? Can someone give me the detailed coding please. Right now I have this:</p>

<pre><code>public class Conversation {
    ConversationService service = new ConversationService("2016-12-06");
service.setUsernameAndPassword("uname","pass");
    MessageRequest newMessage = new MessageRequest.Builder().inputText("Hi").build();

    String workspaceId = "wsId";

    MessageResponse response = service.message(workspaceId, newMessage).execute();
System.out.println(response);

}
</code></pre>