private static void checkDupes(String objectName, List<? extends Object> items) {
    Set<Object> set = Sets.newHashSet(items);
    if (set.size() < items.size()) {
      throw new IllegalStateException(String.format("Duplicates found in %s: %s", objectName, Iterables.toString(items)));
    }
  }
Strips out quotation characters ('"[]) and schema prefixes from identifiers
(table / columns / constraint names)
@param input an identifier
@return the important part of the identifier
ambari-server/src/test/java/org/apache/ambari/server/orm/db/DDLTestUtils.java