}
boolean recursive = (depth == INFINITY);
if (overwrite && sameResourceType) {
macroParameters = new MacroParameters(recursive, true, false);
}
else if (overwrite && !sameResourceType) {
macroParameters = new MacroParameters(recursive, true, true);
}
else {
macroParameters = new MacroParameters(recursive, false, false);
}
boolean destinationExistsBefore = exists( destinationUri );
if (!overwrite && destinationExistsBefore) {