code: private void createTargetClassesFolder(
          CmsModule targetModule,
          String sourceClassesPath,
          String targetBaseClassesPath)
      throws CmsException {
  
          StringTokenizer tok = new StringTokenizer(targetModule.getName(), ".");
          int folderId = CmsResourceTypeFolder.getStaticTypeId();
          String targetClassesPath = targetBaseClassesPath;
  
          while (tok.hasMoreTokens()) {
              String folder = tok.nextToken();
              targetClassesPath += folder + "/";
              if (!getCms().existsResource(targetClassesPath)) {
                  getCms().createResource(targetClassesPath, folderId);
              }
          }
          // move exiting content into new classes sub-folder
          List<CmsResource> propertyFiles = getCms().readResources(sourceClassesPath, CmsResourceFilter.ALL);
          for (CmsResource res : propertyFiles) {
              if (!getCms().existsResource(targetClassesPath + res.getName())) {
                  getCms().copyResource(res.getRootPath(), targetClassesPath + res.getName());
              }
          }
      }
docs: Creates the target folder for the module clone.<p>
  
  @param targetModule the target module
  @param sourceClassesPath the source module class path
  @param targetBaseClassesPath the 'classes' folder of the target module
  
  @throws CmsException if something goes wrong