archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/event/Event.java
/**
     * Recreates the event with the given instance as the new source. The
     * current source is stored in the previous event.
     * @param newSource The new source
     * @return a new event instance, where <code>this</code> is stored as previous event
     */
Recreates the event with the given instance as the new source. The
current source is stored in the previous event.
@param newSource The new source
@return a new event instance, where this is stored as previous event
Recreates the event with the given instance as the new source . The current source is stored in the previous event . @param newSource The new source @return a new event instance where this is stored as previous event
public Event copyFor(Object newSource) {
        Event newEvent = (Event) this.clone();
        newEvent.previous = this;
        newEvent.source = newSource;
        return newEvent;
    }
public Event copyFor ( Object newSource ) { Event newEvent = ( Event ) this . clone ( ) ; newEvent . previous = this ; newEvent . source = newSource ; return newEvent ; }
Recreates the event with the given instance as the new source.
Recreates the event with the given instance as the new source .