private void updateLocalDashboardItemProperties(final Long gadgetId, final Map<String, String> properties) { removeLocalDashboardItemPreferences(gadgetId); for (Map.Entry<String, String> property : properties.entrySet()) { jsonEntityPropertyManager.put(DASHBOARD_ITEM_PROPERTY.getDbEntityName(), gadgetId, property.getKey(), toJsonString(property.getValue())); } }