private void closeThenDeleteFile(final Closeable closeable) throws IOException {
        try {
            closeable.close();
        } finally {
            deleteFile();
        }
    }
This is {@link TemporaryFileSystemResource}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/io/TemporaryFileSystemResource.java