public function copyJob(JobInterface $from, \Abc\Bundle\JobBundle\Model\JobInterface $to)
    {
        $to->setType($from->getType());
        $to->setResponse($from->getResponse());
        $to->setParameters($from->getParameters());

        if (null != $from->getStatus()) {
            $to->setStatus($from->getStatus());
        }

        foreach ($from->getSchedules() as $schedule) {
            $to->addSchedule($schedule);
        }

        return $to;
    }