code: public static Optional<CmsResource> getDetailOnlyResource(
          CmsObject cms,
          String contentLocale,
          CmsResource detailContentRes,
          CmsResource pageRes) {
  
          Optional<CmsResource> detailOnlyRes = getDetailOnlyPage(
              cms,
              detailContentRes,
              getDetailContainerLocale(cms, contentLocale, pageRes));
          return detailOnlyRes;
      }
docs: Gets the detail only resource for a given detail content and locale.<p>
  
  @param cms the current cms context
  @param contentLocale the locale for which we want the detail only resource
  @param detailContentRes the detail content resource
  @param pageRes the page resource
  
  @return an Optional wrapping a detail only resource