int cloneCount = 0;
while (cloneMatcher.find()) {
try {
int cloneLineCount = Integer.parseInt(cloneMatcher.group(2));
int startLine = Integer.parseInt(cloneMatcher.group(3));
<BUG>int endLine = startLine + cloneLineCount - 1;
String cloneFilePath =  commonPathPrefix + "/" + cloneMatcher.group(4);

cloneCount++;</BUG>
CloneInstance cloneInstance = getCloneInstance(cloneFilePath, cloneCount, true, startLine, 0, endLine, 0);

int cloneCount = 0;
while (cloneMatcher.find()) {
try {
int cloneLineCount = Integer.parseInt(cloneMatcher.group(2));
int startLine = Integer.parseInt(cloneMatcher.group(3));
int endLine = startLine + cloneLineCount - 1;
String cloneFilePath =  cloneMatcher.group(4);
if (!"".equals(commonPathPrefix)) {
cloneFilePath = commonPathPrefix + "/" + cloneFilePath;
}
cloneCount++;
CloneInstance cloneInstance = getCloneInstance(cloneFilePath, cloneCount, true, startLine, 0, endLine, 0);
