This way each time method is used, it allocates new jaxbclasses that are never used.
Better way is to have a JAXBContext in a field or maybe a static block, so it is allocated only once
// JAXBContext is thread-safe
private static final JAXBContext CONTEXT;
static {
try {
CONTEXT = JAXBContext.newInstance("........");
} catch (JAXBException e) {
throw new RuntimeException("Error occurred initializing jaxbContext", e);
}
}