if the lockedKeys collection contains byte[] then it must be of type EquivalenceSet/Map and know how to print its content correctly (e.g. EquivalenceSet.toString). I'd rather stick to a single log.trace line as printing a line for each key might be too verbose.