public static List < String > getKeys ( String prefix ) { List < String > res = new ArrayList <> ( ) ; for ( String key : props . keySet ( ) ) { if ( key . startsWith ( prefix ) ) { res . add ( key ) ; } } return res ; }
Returns all keys that start with a prefix