Map<String, String> properties = new HashMap<String, String>();
properties.put(Key.groupId.name(), project.groupId);
properties.put(Key.artifactId.name(), project.artifactId);
properties.put(Key.version.name(), project.version);
properties.put(Key.apply.name(), StringUtils.flattenStrings(apply, ", "));
for (String key : map.keySet()) {
Object o = map.get(key);
if (o instanceof String) {
String value = resolveProperties(o.toString(), properties);
map.put(key, value);
}