code: public static void ensureContainingPage(ResourceResolver resolver, String configResourcePath,
        String resourceType, ConfigurationManagementSettings configurationManagementSettings) {
      ensureContainingPage(resolver, configResourcePath, null, resourceType, null, configurationManagementSettings);
    }
docs: Ensure that a containing page exists for the given path inside a content page.
  If no containing page exists a page is created with the path before /jcr:content/*.
  If the path does not contain /jcr:content nothing is done.
  @param resolver Resource resolver
  @param configResourcePath Configuration resource path
  @param resourceType Resource type for page (if not template is set)
  @param configurationManagementSettings Configuration management settings