private ConfigGroup buildConfigGroup(ConfigGroupEntity configGroupEntity) {
    Cluster cluster = null;
    try {
      cluster = clusters.getClusterById(configGroupEntity.getClusterId());
    } catch (AmbariException e) {
      //almost impossible
    }
    ConfigGroup configGroup = configGroupFactory.createExisting(cluster, configGroupEntity);

    return configGroup;
  }
Return entity object which can be used for operations like remove
directly.
@param configGroupHostMappingEntityPK
@return
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ConfigGroupHostMappingDAO.java