I have an XML which I'm converting to a java object using JAXB in the following way:

```
package IRCurves;

import java.io.File;
import java.util.HashMap;
import java.util.List;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;

public class XmlToObject {
    public static void main(String[] args) {
        try {
            File file = new File("InterestRates_JPY_20160426.xml");
            JAXBContext jaxbContext = JAXBContext.newInstance(InterestRateCurve.class);

            Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
            InterestRateCurve ir= (InterestRateCurve) jaxbUnmarshaller.unmarshal(file);

            System.out.println(ir.getEffectiveasof()+" "+ir.getCurrency()+" "+ir.getBaddayconvention());
            System.out.println("Deposits:");
            List<Deposits> list=ir.getDeposits();
            for(Deposits ans:list) {
                System.out.println(ans.getDaycountconvention()+" "+ans.getSnaptime()+" "+ans.getSpotdate());
                System.out.println("Calenders:");
                List<Calenders> list1=ans.getCalenders();
                for(Calenders c:list1)
                    System.out.println(c.getCalender());
                System.out.println("Curvepoint:");
                List<Curvepoint> list2=ans.getCurvepoint();
                for(Curvepoint curve:list2)
                    System.out.println(curve.getTenor()+" "+curve.getMaturitydate()+" "+curve.getParrate());
            }
            System.out.println("Swaps:");
            List<Swaps> list3=ir.getSwaps();
            for(Swaps swap:list3) {
                System.out.println(swap.getFixeddaycountconvention()+" "+swap.getFloatingdaycountconvention()+" "+swap.getFixedpaymentfrequency()+" "+swap.getFloatingpaymentfrequency()+" "+swap.getSnaptime()+" "+swap.getSpotdate());
            /*System.out.println("Calenders:");  
            List<Calenders> list1=swap.getCalenders();
            for(Calenders c:list1)  
                System.out.println(c.getCalender());*/
                System.out.println("Curvepoint:");
                List<Curvepoint> list2=swap.getCurvepoint();
                for(Curvepoint curve:list2)
                    System.out.println(curve.getTenor()+" "+curve.getMaturitydate()+" "+curve.getParrate());
            }
        } catch (JAXBException e) {
            e.printStackTrace();
        }
    }
}

```

I want to store this into a Hash Map of the form `HashMap<"Deposits_1M", 2016-06-29 -0.00029)`, where `1M` is the value we get by doing `curve.getTenor()` and `2016-06-29` is one of the value we get by doing `curve.getMaturitydate()` & `-.00029` we get by doing `curve.getParrate()`. so, basically I want the value we get from each iteration of `for(Curvepoint curve:list2)` for `getTenor()` to be as key along with the string `"Deposits"`, and the value we get from `curve.getMaturitydate(`) and `curve.getParrate()` to be as the value of one hash map entry.

How do I do that?