private static void assignNewUUID(AlertDefinitionEntity entity) {
    if (entity != null) {
      entity.setHash(UUID.randomUUID().toString());
    }
  }
Updates <code>entity</code> with a new UUID.
ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionFactory.java