code: @Override
      public ViewMetadata getViewMetadata(FacesContext context, String viewId) {
          ViewMetadata metadata = delegate.getViewMetadata(context, viewId);
          if (metadata != null) {
              return new SeamViewMetadata(metadata);
          } else {
              return null;
          }
      }
docs: If non-null, wrap the {@link ViewMetadata} returned by the delegate in a new instance of {@link SeamViewMetadata}.