HashMap<String, Object> map = new HashMap<String, Object>();
Properties properties = view.getProperties();
for (Map.Entry<Object, Object> entry : properties.entrySet()) {
map.put(entry.getKey().toString(), entry.getValue());
}
JahiaResourceBundle rb = new JahiaResourceBundle(null, locale, view.getModule().getName());
String displayName = rb.get(declaringPropertyDefinition.getResourceBundleKey() + "." + view.getKey().replace(':', '_'),
view.getKey());
ChoiceListValue c = new ChoiceListValue(displayName, map, new ValueImpl(view.getKey(), PropertyType.STRING, false));
try {
final File imagePath = new File(