code: public CmsDetailPageInfo getMainDetailPage(String type) {
  
          List<CmsDetailPageInfo> detailPages = getDetailPagesForType(type);
          if ((detailPages == null) || detailPages.isEmpty()) {
              return null;
          }
          return detailPages.get(0);
      }
docs: Gets the main detail page for a specific type.<p>
  
  @param type the type name
  
  @return the main detail page for that type