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