Replaced getResourceAsStream with getResource.