resource.get().send(new SimpleTextCallback(i18n.CouldntFindForm(formName)) {
@Override
public void onSuccess(Method method, String response) {
if (method.getResponse().getStatusCode() == Response.SC_OK) {
List<FormRepresentation> list = helper.readForms(response);
bus.fireEvent(new LoadServerFormResponseEvent(list.isEmpty() ? null : list.iterator().next()));
} else {
bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.CouldntFindForm404(formName)));
}
}
});