code: public View viewByContentType(String contentType) {
          for (View view: views.values()) {
              if (view.getContentType().equals(contentType)) {
                  return view;
              }
          }
          return null;
      }
docs: Return the first view with the given content type.
  @param contentType
  @return