Here you can find the source of removeNamespaces(Map properties)
public static Map removeNamespaces(Map properties)
//package com.java2s; /*/* w w w .j av a 2s. c o m*/ * $Id$ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */ import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class Main { public static Map removeNamespaces(Map properties) { HashMap props = new HashMap(properties.size()); Map.Entry entry; for (Iterator iter = properties.entrySet().iterator(); iter.hasNext();) { entry = (Map.Entry) iter.next(); props.put(removeNamespacePrefix((String) entry.getKey()), entry.getValue()); } return props; } public static String removeNamespacePrefix(String eleName) { int i = eleName.lastIndexOf('.'); return (i == -1 ? eleName : eleName.substring(i + 1, eleName.length())); } }