5859606162636465
} } } if( !errors.isEmpty() ) { throw new LifecycleException( "Unable to delete existing files: " + errors ); } }
4647484950515253
{ // We use the managed file so that if the UoW gets discarded the file will be restored File file = hasUoWFile.managedFile(); if( file.exists() && !file.delete() ) { throw new LifecycleException( "Unable to delete existing file: " + file ); } }