private static void processConfigElement(IConfigurationElement configElement, Map<String, ElementTypeDefinition> typesMap,
Map<String, Map<String, ElementTypeDefinition>> paletteMap) {
if (!configElement.getName().equals("element"))
throw new RuntimeException("unknown config element: " + configElement.getName());
ElementTypeDefinition type = new ElementTypeDefinition(configElement);
typesMap.put(type.getName(), type);
IConfigurationElement entry = type.getEntryConfigElement();
if (type.getEntryConfigElement() == null)
return;
String entryId = entry.getAttribute("id");
String categoryId = entry.getAttribute("category");
Map<String, ElementTypeDefinition> category = paletteMap.get(categoryId);
if (category == null) {