class DecomposeJsonUtil implements Serializable {

    public static ServiceDecomposition jsonToServiceDecomposition(String jsonString) throws JsonDecomposingException {
        try {
            ObjectMapper om = new ObjectMapper();
            om.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true);
            om.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
            return om.readValue(jsonString, ServiceDecomposition.class);
        } catch (IOException e) {
            throw new JsonDecomposingException("Exception while converting json to service decomposition", e);
        }
    }

    private  DecomposeJsonUtil();

}