*/
public final class InstanceEndAdapter implements EventAdapter.EventDetailMapping<ProcessCompletionEvent> {
public Event adoptDetails(Event target, ProcessCompletionEvent source) {
Event.EventDetails details = target.getEventDetails();
State state = source.getFault()!=null ?
State.Closed_Completed_Failed : State.Closed_Completed;
details.setCurrentState(state);
if(State.Closed_Completed_Failed == details.getCurrentState())