private static File findProfileYaml ( File directory ) { for ( String profileFile : PROFILE_FILENAMES ) { File ret = new File ( directory , String . format ( profileFile , "" ) ) ; if ( ret . exists ( ) ) { return ret ; } } return null ; }
check for various variations of profile files