/** * Builds new marshaller for given format and class loader * @param classes optional custom classes to be added to marshaller - might be null * @param format marshaller format that marshaller should be built for * @param classLoader classloader to be used by the marshaller * @return new instance of the marshaller */ public static Marshaller getMarshaller(Set<Class<?>> classes, MarshallingFormat format, ClassLoader classLoader) { return builder.build(classes, format, classLoader); }