public StatusDetail withoutDetail ( final String key ) { final LinkedHashMap < String , String > newDetails = new LinkedHashMap <> ( details ) ; newDetails . remove ( key ) ; return statusDetail ( name , status , message , newDetails ) ; }
Create a copy of this StatusDetail remove a detail and return the new StatusDetail .