private Message moveResourceToCollection(
     final Resource source, final Resource destination, final boolean overwrite)
     throws IOException {
   if (overwrite) {
     destination.delete();
   }
   source.moveTo(destination);
   return overwrite ? successNoContent() : successCreated();
 }
 private Message moveCollectionToCollection(
     final Resource source, final Resource destination, final boolean overwrite)
     throws IOException {
   source.moveTo(destination);
   return successNoContent();
 }