protected <T> String toJson(final T object) {
        if (object == null) {
            throw new IllegalArgumentException("object parameter is null");
        }

        Gson gson = GsonFactory.create();
        return gson.toJson(object);
    }