SimpleJpaRepository<?, ?> repo = null;
if (isQueryDslExecutor(repositoryInterface)) {
repo = new QueryDslJpaRepository(entityInformation, entityManager);
} else {
repo = new JpaSupportRepository(entityInformation, entityManager);
}
repo.setLockMetadataProvider(LockModeRepositoryPostProcessor.INSTANCE.getLockMetadataProvider());
return repo;