// Get a new RequestContext which we will execute.
UrlContext urlContext = urlShortener.url();
// Create a new Url instance with the longUrl we want to insert.
Url url = urlContext.create(Url.class).setLongUrl(longUrl);
// Fire an insert() request with the Url to insert.
urlContext.insert(url).fire(new Receiver<Url>() {
@Override
public void onSuccess(Url response) {