32 if (keycloakConfigFile.startsWith(GenericConstants.PROTOCOL_CLASSPATH)) {
33 String classPathLocation = keycloakConfigFile.replace(GenericConstants.PROTOCOL_CLASSPATH,
"");
35 InputStream is = FindFile.class.getClassLoader().getResourceAsStream(classPathLocation);
37 is = Thread.currentThread().getContextClassLoader().getResourceAsStream(classPathLocation);
43 throw new RuntimeException(
"Unable to find config from classpath: " + keycloakConfigFile);
48 return new FileInputStream(keycloakConfigFile);
49 }
catch (FileNotFoundException fnfe) {
50 throw new RuntimeException(fnfe);