code: private String head(String moduleName) {
          if (moduleName.indexOf(MODULE_NAME_SEPARATOR) > 0) {
              return moduleName.substring(0, moduleName.indexOf(MODULE_NAME_SEPARATOR));
          } else {
              return moduleName;
          }
      }
docs: get first part of module name (up to separator)