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