You're right. I chose this shortcut for performance. My first implementation used directly ClassLoader to access resources. Timm suggested to use ResourceProvider which is a stream layer on top of ClassLoader. I'll change the implementation above to use io.File which uses the stream support provided by ResourceProvider.