return new Person(new PersonId("pid"), "admin", null);
}
public static <E extends GwtEvent<?>> E extractFromEvents(
List<? extends GwtEvent> events, final Class<E> eventType) {
GwtEvent gwtEvent = Iterables.find(events, new Predicate<GwtEvent>() {
@Override
public boolean apply(GwtEvent input) {
return eventType.isAssignableFrom(input.getClass());
}
});