Modified plugin to use JD's API for retrieving resources instead of using reflection.