artifactFactory.destroy(obj);
}
}
private void createJobListeners() {
Listeners listeners = jobExecution.getSubstitutedJob().getListeners();
if (listeners != null) {
List<Listener> listenerList = listeners.getListener();
int count = listenerList.size();
this.jobListeners = new JobListener[count];
for (int i = 0; i < count; i++) {
Listener listener = listenerList.get(i);
this.jobListeners[i] = createArtifact(listener.getRef(), null, listener.getProperties());