Path pDest = Path.path( dest );
Resource rDestParent = resourceFactory.getResource( host, pDest.getParent().toString());
if( rDestParent == null ) throw new BadRequestException( wrapped, "The destination parent does not exist");
if(rDestParent instanceof CollectionResource ) {
CollectionResource colDestParent = (CollectionResource) rDestParent;
if( colDestParent.child( pDest.getName()) == null ) {
try {
wrapped.copyTo( colDestParent, pDest.getName() );
} catch( ConflictException ex ) {
log.warn( "Exception copying to: " + pDest.getName(), ex);
throw new BadRequestException( rDestParent, "conflict: " + ex.getMessage());