package com.neoteric.starter.exception.mapper;

import ch.qos.logback.classic.Level;
import com.neoteric.starter.exception.ResourceNotFoundException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;

import javax.ws.rs.ext.Provider;

@Provider
public class ResourceConflictExceptionMapper extends AbstractExceptionMapper<ResourceNotFoundException> {

    private static final Logger LOG = LoggerFactory.getLogger(ResourceNotFoundExceptionMapper.class);

    @Override
    protected HttpStatus httpStatus() {
        return HttpStatus.CONFLICT;
    }

    @Override
    protected Logger logger() {
        return LOG;
    }

    @Override
    protected Level logLevel() {
        return Level.ERROR;
    }

    @Override
    protected Object message(ResourceNotFoundException resourceNotFoundException) {
        return resourceNotFoundException.getMessage();
    }
}
@@ -120,32 +120,32 @@
 ion.Resource
-NotFound
+Conflict
 Exception;%0Ai
@@ -370,32 +370,32 @@
 per%3CResource
-NotFound
+Conflict
 Exception%3E %7B
@@ -462,32 +462,32 @@
 ger(Resource
-NotFound
+Conflict
 ExceptionMap
@@ -806,42 +806,16 @@
 urce
-NotFoundException resourceNotFound
+Conflict
 Exce
@@ -819,16 +819,19 @@
 xception
+ ex
 ) %7B%0A    
@@ -845,33 +845,10 @@
 urn 
-resourceNotFoundException
+ex
 .get

Fix ResourceConflictMapper