ji.setInternalPosition(ji.getId());
for (JobParameter jp : jps)
{
jqmlogger.trace("Parameter: " + jp.getKey() + " - " + jp.getValue());
em.persist(ji.addParameter(jp.getKey(), jp.getValue()));
}
jqmlogger.trace("JI just created: " + ji.getId());
em.getTransaction().commit();
return ji.getId();