checkTableExists(connector, tableName);
TreeSet<Integer> constraintNumbers = new TreeSet<Integer>();
TreeMap<String,Integer> constraintClasses = new TreeMap<String,Integer>();
int i;
for (Map.Entry<String,String> property : connector.tableOperations().getProperties(tableName)) {
if (property.getKey().startsWith(Property.TABLE_CONSTRAINT_PREFIX.toString())) {
try {
i = Integer.parseInt(property.getKey().substring(Property.TABLE_CONSTRAINT_PREFIX.toString().length()));
} catch (NumberFormatException e) {
throw new org.apache.accumulo.proxy.thrift.AccumuloException("Bad key for existing constraint: " + property.toString());