Replace lines 141-144 with this:
```
File dataFile = new File(requiredResource);
```