Java/JDI/jdi-mock-rest/src/main/java/com/epam/mock/service/ConfigurationHandlerService.java
public boolean editMap(ConfigurationHandler configurationHandler) {
        String method = configurationHandler.getMethod().toUpperCase();

        if (configurationHandlerMap.containsKey(Method.valueOf(method))) {
            configurationHandlerMap.put(Method.valueOf(method), configurationHandler);

            return true;
        }

        return false;
    }
public boolean editMap(ConfigurationHandler configurationHandler) {
        String method = configurationHandler.getMethod().toUpperCase();

        if (configurationHandlerMap.containsKey(Method.valueOf(method))) {
            configurationHandlerMap.put(Method.valueOf(method), configurationHandler);

            return true;
        }

        return false;
    }
Edit representation for method specified in sent parameter after controller calls for it.
@param configurationHandler Our representation of response.
@return True if mock-service contains sent method, false otherwise.