Don't forget to set the context classloader to whatever it will be when an instance of this class is actually created before calling this method!