Here you can find the source of copyStringMap(Map
private static Map<String, String> copyStringMap(Map<String, String> initParams)
//package com.java2s; /******************************************************************************* * Copyright (c) 2015, 2016 Raymond Aug? and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors:/*from w w w. ja va 2 s.co m*/ * Raymond Aug? - bug fixes and enhancements ******************************************************************************/ import java.util.*; public class Main { private static Map<String, String> copyStringMap(Map<String, String> initParams) { return new HashMap<String, String>(initParams); } }