Common mappings and templates for java4cpp project