setJobDataMap( dataMap );
TaskQueue taskQueue = (TaskQueue) dataMap.get( TASK_QUEUE );
String queuePolicy = dataMap.get( TASK_QUEUE_POLICY ).toString();
ArchivaTask task = new DatabaseTask();
task.setName( context.getJobDetail().getName() );
try
{
if ( taskQueue.getQueueSnapshot().size() == 0 )
{