class RestTemplateUtils {

    public static boolean isNotFound( @Nonnull HttpClientErrorException e )
    {
        if ( !HttpStatus.NOT_FOUND.equals( e.getStatusCode() ) )
        {
            return false;
        }
        final HttpHeaders headers = e.getResponseHeaders();
        return (headers != null) && MediaType.APPLICATION_JSON.isCompatibleWith( headers.getContentType() );
    }

    private  RestTemplateUtils();

}