Could you change this to `Utils.getContextOrSparkClassLoader`? It's not always the case that the context classloader is set, and the utility function deals with that correctly.