code: private void addResourceToModule(String resourcePath, CmsModule module) {
  
          List<String> currentRessources = Lists.newArrayList(module.getResources());
          for (String resource : currentRessources) {
              if (resourcePath.startsWith(resource)) {
                  return;
              }
          }
          currentRessources.add(resourcePath);
          module.setResources(currentRessources);
      }
docs: Adds the given resource to the module if necessary.<p>
  
  @param resourcePath to be added
  @param module module