private int enqueueSync(String applicationName, String user, String mail, String sessionId, String application, String module,
String keyword1, String keyword2, String keyword3, Map<String, String> parameters)
{
int i = enqueue(applicationName, user, mail, sessionId, application, module, keyword1, keyword2, keyword3, parameters);
JqmClient c = getJqmClient();
com.enioka.jqm.api.JobInstance jiLocal = null;
while (true)
{
jiLocal = c.getJob(i);
if (jiLocal.getState().equals(com.enioka.jqm.api.State.CRASHED) || jiLocal.getState().equals(com.enioka.jqm.api.State.ENDED))
{
break;
}
try