private Set < String > getEnvironments ( Properties props ) { Set < String > environments = new HashSet <> ( ) ; for ( Object k : props . keySet ( ) ) { String environment = k . toString ( ) . split ( "\\." ) [ 0 ] ; environments . add ( environment ) ; } return new TreeSet <> ( environments ) ; }
get environments defined in properties