class CatalogIdentifierDatasource extends SlingSafeMethodsServlet {

    protected List<Resource> generateResources(ResourceResolver resolver, List<String> properties) {
        return properties.stream().map(property -> {
            Map<String, Object> resourceProperties = new HashMap<String, Object>() {
                {
                    put("text", property);
                    put("value", property);
                }
            };
            ValueMapResource syntheticResource = new ValueMapResource(resolver, new ResourceMetadata(), "", new ValueMapDecorator(
                resourceProperties));
            return syntheticResource;
        }).collect(Collectors.toList());
    }

}