public static void fillDatabaseWithColor() {
Color ilkRenk = new Color(0, 0, 0);
List<?> renkListesi = HibernateManager.getInstance().get(Renk.class);
if (renkListesi.size() <= 0) {
Renk renk = new Renk();
int x= KNOWNCOLORS.size();
for (int i = 0; i <x; i++) {
String enYakinDeger=getBestColorName(ilkRenk);
ilkRenk=KNOWNCOLORS.get(enYakinDeger);
renk.setName(enYakinDeger.toUpperCase());
renk.setColor(ilkRenk);
KNOWNCOLORS.remove(enYakinDeger);
HibernateManager.getInstance().save(renk);
}
}