@Override
  @Transactional
  public void create(AmbariConfigurationEntity entity) {
    // make sure only one entry exists per configuration type...
    AmbariConfigurationEntity foundEntity = findByPK(new AmbariConfigurationEntityPK(entity.getCategoryName(), entity.getPropertyName()));
    if (foundEntity != null) {
      String message = String.format("Only one configuration entry can exist for the category %s and name %s", entity.getCategoryName(), entity.getPropertyName());
      LOGGER.error(message);
      throw new EntityExistsException(message);
    }

    super.create(entity);
  }
Removes the Ambari configuration properties with the requested category name from the database.

@param categoryName the configuration category name
@return the number of items removed
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AmbariConfigurationDAO.java