class TagHelper {

    public String safeObjectMapperWriteValueAsString(final TagEntity tagEntity)
    {
        String jsonString = "";

        try
        {
            // Convert the tag entity to a JSON string
            jsonString = jsonHelper.objectToJson(tagEntity);
        }
        catch (IllegalStateException illegalStateException)
        {
            LOGGER.warn("Could not parse tagEntity id={" + tagEntity.getId() + "} into JSON string. ", illegalStateException);
        }

        return jsonString;
    }

}