public static String toStringNonNull(Map<?, ?> map) {
        StringBuffer sb = new StringBuffer();
        for (Map.Entry<?,?> entry : map.entrySet()) {
        	if (entry.getValue() == null) {
        		continue;
        	}
            if (sb.length() > 0) {
                sb.append("\n");
            }
            sb.append(entry.getKey()).append("=").append(entry.getValue());
        }
        return sb.toString();
    }

	/**
     * Create a map based on the Object... param. Each 2 values is an entry
     * which is a pair of key then value
     * @param objects The params that will be converted to map.
     * 					Format: [key1, value1, key2, value2]
     * @return The map after converted from param objects
     */
//    @SuppressWarnings({"unchecked"}