code: private List<CmsResource> renameXmlVfsBundles(List<CmsResource> resources, CmsModule targetModule, String name)
      throws CmsException {
  
          for (CmsResource res : resources) {
              String newName = res.getName().replaceAll(name, targetModule.getName());
              String targetRootPath = CmsResource.getFolderPath(res.getRootPath()) + newName;
              if (!getCms().existsResource(targetRootPath)) {
                  getCms().moveResource(res.getRootPath(), targetRootPath);
              }
          }
          return resources;
  
      }
docs: Renames the vfs resource bundle files within the target module according to the new module's name.<p>
  
  @param resources the vfs resource bundle files
  @param targetModule the target module
  @param name the package name of the source module
  
  @return a list of all xml vfs bundles within the given module
  @throws CmsException if something gows wrong