@Override
  public void setServiceName(String serviceName) {
    ConfigGroupEntity configGroupEntity = getConfigGroupEntity();
    configGroupEntity.setServiceName(serviceName);
    configGroupDAO.merge(configGroupEntity);

    this.serviceName = serviceName;
  }
Persist config group config mapping and create configs if not in DB

@param clusterEntity
@throws Exception
ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java