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