code: public static Marshaller createMarshallerForClass(Class<?> clazz) {
          try {
              return JAXBContext.newInstance(clazz).createMarshaller();
          } catch (JAXBException e) {
              throw new AllureException("Can't create marshaller for class " + clazz, e);
          }
      }
docs: Creates a new {@link javax.xml.bind.Marshaller} for given class.
  
  @param clazz specified class
  @return a created marshaller
  @throws AllureException if can't create marshaller for given class.