@Bean
public Repository repository() {
if (repositoryApiConfiguration().getRepositoryType().equals(
"filesystem")) {
return new FileSystemRepository();
} else if (repositoryApiConfiguration().getRepositoryType().equals(
"mongodb")) {
return new MongoRepository();
} else {
throw new KurentoException(