Here you can find the source of copyOptions(Map
public static Map<String, Object> copyOptions(Map<String, Object> options)
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, Object> copyOptions(Map<String, Object> options) { return options != null ? new HashMap<String, Object>(options) : new HashMap<String, Object>(); }/*w ww . ja va2s. co m*/ }