@@ -0,0 +1,952 @@
+package com.wizzardo.http.framework.message;%0A%0Aimport com.wizzardo.tools.misc.Unchecked;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Properties;%0A%0A/**%0A * Created by wizzardo on 22.05.15.%0A */%0Apublic class PropertiesMessageSource implements MessageSource %7B%0A%0A    protected Map%3CString, Template%3E templates = new HashMap%3C%3E();%0A%0A    public PropertiesMessageSource(String name) %7B%0A        Properties properties = new Properties();%0A        Unchecked.run(() -%3E properties.load(PropertiesMessageSource.class.getResourceAsStream(%22/i18n/%22 + name + %22.properties%22)));%0A%0A        for (Map.Entry%3CObject, Object%3E entry : properties.entrySet()) %7B%0A            templates.put(String.valueOf(entry.getKey()), new Template(String.valueOf(entry.getValue())));%0A        %7D%0A    %7D%0A%0A    @Override%0A    public String get(String key, Object... args) %7B%0A        Template template = templates.get(key);%0A        return template == null ? null : template.get(args);%0A    %7D%0A%7D%0A

add PropertiesMessageSource