public static String translateCommitables(SVNCommitItem[] items,
Map decodedPaths) throws SVNException {
Map itemsMap = new TreeMap();
for (int i = 0; i < items.length; i++) {
SVNCommitItem item = items[i];
if (itemsMap.containsKey(item.getURL().toString())) {
SVNCommitItem oldItem = (SVNCommitItem) itemsMap.get(item.getURL().toString());
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_DUPLICATE_COMMIT_URL,
"Cannot commit both ''{0}'' and ''{1}'' as they refer to the same URL",
new Object[] {item.getFile(), oldItem.getFile()});
SVNErrorManager.error(err);