public Map<String, String> getProperties() {
        Map<String, String> map = new TreeMap<>();
        for (String key : this.reference.getPropertyKeys()) {
            Object value = this.reference.getProperty(key);
            if (value.getClass().isArray()) {
                map.put(key, Arrays.toString((Object[]) value));
            } else {
                map.put(key, value.toString());
            }
        }
        return map;
    }
public Map < String , String > getProperties ( ) { Map < String , String > map = new TreeMap < > ( ) ; for ( String key : this . reference . getPropertyKeys ( ) ) { Object value = this . reference . getProperty ( key ) ; if ( value . getClass ( ) . isArray ( ) ) { map . put ( key , Arrays . toString ( ( Object [ ] ) value ) ) ; } else { map . put ( key , value . toString ( ) ) ; } } return map ; }
@return the service properties (as a map of String - String). Array values are transformed as Strings.