public Module getModule(String moduleName) {
    for (Module module : modules) {
      if (StringUtils.equals(moduleName, module.getName())) {
        return module;
      }
    }

    return null;
  }
Gets the module with the given name. Module names are service names.

@param moduleName
         the name of the module.
@return the module or {@code null}.
ambari-server/src/main/java/org/apache/ambari/server/state/Mpack.java