private void mergeRoleCommandOrder(ServiceModule service) {
    if (service.getModuleInfo().getRoleCommandOrder() == null) {
      return;
    }

    stackInfo.getRoleCommandOrder().merge(service.getModuleInfo().getRoleCommandOrder(), true);
    if (LOG.isDebugEnabled()) {
      LOG.debug("Role Command Order for {}-{} service {}", stackInfo.getName(), stackInfo.getVersion(), service.getModuleInfo().getName());
      stackInfo.getRoleCommandOrder().printRoleCommandOrder(LOG);
    }
  }
Merge role command order with the service

@param service    service
ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java