@SuppressWarnings("unchecked")
public void scheduleJob(Class job, String jobName, Trigger trigger)
throws PinsetterException {
JobDataMap map = new JobDataMap();
map.put(PinsetterJobListener.PRINCIPAL_KEY, new SystemPrincipal());
JobDetail detail = newJob(job)
.withIdentity(jobName, CRON_GROUP)
.usingJobData(map)
.build();