public static SVNURL translateCommitables(SVNCommitItem[] items, Map decodedPaths) throws SVNException {
Map itemsMap = new SVNHashMap();
for (int i = 0; i < items.length; i++) {
SVNCommitItem item = items[i];
if (itemsMap.containsKey(item.getURL())) {
SVNCommitItem oldItem = (SVNCommitItem) itemsMap.get(item.getURL());
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, SVNLogType.WC);