@Bean(destroyMethod = "close")
@Lazy
@DependsOn({ "acrossCoreSchemaInstaller", AcrossContext.DATASOURCE })
public SqlBasedDistributedLockManager sqlBasedDistributedLockManager( DataSource acrossDataSource ) {
if ( acrossDataSource == null ) {
throw new AcrossException(
"Unable to create the DistributedLockRepository because there is no DataSource configured. " +
"A DataSource is required to install the core schema."
);
}