private String getExtendsPresenter(TypeElement classDeclaration) {
    Collection<? extends AnnotationMirror> annotations = classDeclaration.getAnnotationMirrors();
    for (AnnotationMirror a : annotations) {
      Element decl = a.getAnnotationType().asElement();
      if (decl == null) {
        continue;
      }

      String qualifiedName = ((TypeElement) decl).getQualifiedName().toString();
      if (qualifiedName.equals("com.guit.client.apt.GwtPresenter")) {
        for (Entry<? extends ExecutableElement, ? extends AnnotationValue> entry : a
            .getElementValues().entrySet()) {
          if (entry.getKey().getSimpleName().toString().equals("extendsPresenter")) {
            return entry.getValue().getValue().toString();
          }
        }
      }
    }
    return "com.guit.client.GuitPresenter";
  }