code: public static String defaultCreateResourceToEdit(
          CmsObject cms,
          String newLink,
          Locale locale,
          String referenceSitePath,
          String modelFileSitePath,
          String mode,
          String postCreateHandler)
      throws CmsException {
  
          String newFileName;
          if (newLink.startsWith(CmsJspTagEdit.NEW_LINK_IDENTIFIER)) {
  
              newFileName = CmsJspTagEdit.createResource(
                  cms,
                  newLink,
                  locale,
                  referenceSitePath,
                  modelFileSitePath,
                  mode,
                  postCreateHandler);
          } else {
              newFileName = A_CmsResourceCollector.createResourceForCollector(
                  cms,
                  newLink,
                  locale,
                  referenceSitePath,
                  modelFileSitePath,
                  mode,
                  postCreateHandler);
          }
          return newFileName;
      }
docs: Creates a new resource to edit, delegating to an edit handler if edit handler data is passed in.<p>
  
  @param cms The CmsObject of the current request context.
  @param newLink A string, specifying where which new content should be created.
  @param locale The locale for which the
  @param referenceSitePath site path of the currently edited content.
  @param modelFileSitePath site path of the model file
  @param mode optional creation mode
  @param postCreateHandler optional class name of an {@link I_CmsCollectorPostCreateHandler} which is invoked after the content has been created.
  
  @return The site-path of the newly created resource.
  @throws CmsException if something goes wrong