data-rest: repository description fix
@@ -78,7 +78,7 @@ class EntityServicesProvider implements RequestHandlerProvider {
List<EntityContext> contexts = newArrayList();
for (Class each : repositories) {
repositories.getRepositoryInformationFor(each).ifPresent(repositoryInfo -> {
- Object repositoryInstance = repositories.getRepositoryFor(each);
+ repositories.getRepositoryFor(each).ifPresent(repositoryInstance -> {
ResourceMetadata resource = mappings.getMetadataFor(each);
if (resource.isExported()) {
contexts.add(new EntityContext(
@@ -92,6 +92,7 @@ class EntityServicesProvider implements RequestHandlerProvider {
associations, extractorConfiguration));
}
});
+ });
}
