private static Marshaller newMarshaller() {
return JAXBHelper.newMarshaller(newContext(ObjectFactory.class));
}
public static QueueType unmarshal(InputStream in) throws JAXBException {
QueueType result;
try {
JAXBElement<QueueType> element = (JAXBElement<QueueType>) newUnmarshaller().unmarshal(in);
result = element.getValue();
} catch (ClassCastException e) {
throw new JAXBException("Parse error: " + e, e);