Java tutorial
//package com.java2s; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, Object> getProperties(Map<String, Object> map) { Map<String, Object> propertiesMap = new HashMap<String, Object>(); for (String key : map.keySet()) { if (!key.startsWith("__")) { propertiesMap.put(key, map.get(key)); } } return propertiesMap; } }