WorkspaceDuplicationEvent event = new WorkspaceDuplicationEvent(EventConstants.WORKSPACE_DUPLICATED, workspace, workspaceClone);
log.debug("Firing event " + event);
for (Iterator it = list.iterator(); it.hasNext();) {
WorkspaceListener listener = (WorkspaceListener) it.next();
try {
listener.workspaceDuplicated(event);
} catch (Exception e) {
log.warn("Error firing event.", e);
}
}
}