public static final String RESOURCE_DAO = "resourceDao";
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
ResourceDao resourceDao = (ResourceDao) context.getJobDetail().getJobDataMap().get(RESOURCE_DAO);
JavaJingScraper javaJingScraper = new JavaJingScraper();
List<Resource> resources = javaJingScraper.checkEpisodePageLinks();
for(Resource resource : resources) {
resourceDao.create(resource);
}
}