code: private List<String> adjustModuleResourcePaths(
          List<String> targetResources,
          String sourceModuleName,
          String targetModuleName,
          String sourcePathPart,
          String targetPathPart,
          Map<String, String> iconPaths) {
  
          List<String> newTargetResources = new ArrayList<String>();
          for (String modRes : targetResources) {
              String nIcon = iconPaths.get(modRes.substring(modRes.lastIndexOf('/') + 1));
              if (nIcon != null) {
                  // the referenced resource is an resource type icon, add the new icon path
                  newTargetResources.add(ICON_PATH + nIcon);
              } else if (modRes.contains(sourceModuleName)) {
                  // there is the name in it
                  newTargetResources.add(modRes.replaceAll(sourceModuleName, targetModuleName));
              } else if (modRes.contains(sourcePathPart)) {
                  // there is a path in it
                  newTargetResources.add(modRes.replaceAll(sourcePathPart, targetPathPart));
              } else {
                  // there is whether the path nor the name in it
                  newTargetResources.add(modRes);
              }
          }
          return newTargetResources;
      }
docs: Adjusts the paths of the module resources from the source path to the target path.<p>
  
  @param targetResources the paths to adjust
  @param sourceModuleName the source module name
  @param targetModuleName the target module name
  @param sourcePathPart the path part of the source module
  @param targetPathPart the path part of the target module
  @param iconPaths the path where resource type icons are located
  @return the adjusted paths