@ Override public void resolveIncident ( final String incidentId ) { IncidentEntity incident = ( IncidentEntity ) Context . getCommandContext ( ) . getIncidentManager ( ) . findIncidentById ( incidentId ) ; IncidentHandler incidentHandler = findIncidentHandler ( incident . getIncidentType ( ) ) ; if ( incidentHandler == null ) { incidentHandler = new DefaultIncidentHandler ( incident . getIncidentType ( ) ) ; } IncidentContext incidentContext = new IncidentContext ( incident ) ; incidentHandler . resolveIncident ( incidentContext ) ; }
Resolves an incident with given id .