Here you can find the source of toMap(String componentName, String contextName)
public static Map<String, String> toMap(String componentName, String contextName)
//package com.java2s; /******************************************************************************* * Copyright (c) 2012 Boeing./*from w w w .j ava2s .co m*/ * 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: * Boeing - initial API and implementation *******************************************************************************/ import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String> toMap(String componentName, String contextName) { Map<String, String> data = new HashMap<String, String>(); data.put("component.name", componentName); data.put("context.name", contextName); return data; } }