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