class CommonUtils {

    public static String getJsonString(final Object annotation) {
        try {
            return new ObjectMapper().writeValueAsString(annotation);
        } catch (JsonProcessingException jsonProcessingException) {
            LOGGER.error("JsonProcessingException : " + jsonProcessingException.getMessage());
        }
        return null;
    }

}