Here you can find the source of getObjects(List
@SuppressWarnings({ "rawtypes", "unchecked" }) public static List getObjects(List<JAXBElement> objEls)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBElement; public class Main { @SuppressWarnings({ "rawtypes", "unchecked" }) public static List getObjects(List<JAXBElement> objEls) { final List list = new ArrayList(); for (final JAXBElement objEl : objEls) { list.add(objEl.getValue());//from w ww . j ava 2 s.c om } return list; } }