The following snippet is taken from the Neo4j driver support and demonstrates how bean creation can be wrapped in retry support: