//create an io object for working that will notify us for some io events...
IOConfig ioConfig = IOConfig.create().
on(IO.EVENT_SUCCESS, new EventCallback<IOEvent>() {
@Override
public void call(IOEvent e) {
console1.log("SUCCESS, responseText: "+e.data().responseText());
}
}).on(IO.EVENT_FAILURE, new EventCallback<IOEvent>() {
@Override
public void call(IOEvent e) {
console1.log("FAILURE. Status: "+e.data().status()+" - "+e.data().statusText(), "", "");