here you see the source code, first it tries via request and then resource:sling-org-apache-sling-scripting-sightly-models-provider/SlingModelsUseProvider.java at master · apache/sling-org-apache…
see here an example: htl-examples/MyServiceConfiguration.java at master · heervisscher/htl-examples · GitHub @AttributeDefinition(name = "Multiple-Values", description = "Multi Configuration values")String[] getStringValues();