Changed resource files to input stream to handle when files are packaged inside a jar