import org.jboss.errai.bus.client.api.HasAsyncTaskRef;
import org.jboss.errai.bus.client.api.TaskManager;
public class ClientTaskManager implements TaskManager {
public void execute(final Runnable task) {
GWT.runAsync(new RunAsyncCallback() {
public void onFailure(Throwable reason) {
GWT.log("failed async execution", reason);
}
public void onSuccess() {