public GenericJBossMarshaller() {
factory = Marshalling.getMarshallerFactory("river", Marshalling.class.getClassLoader());
configuration = new MarshallingConfiguration();
configuration.setCreator(new SunReflectiveCreator());
configuration.setExceptionListener(new DebuggingExceptionListener());
// ContextClassResolver provides same functionality as MarshalledValueInputStream
configuration.setClassResolver(new DefaultContextClassResolver(appClassLoader));
configuration.setClassExternalizerFactory(new SerializeWithExtFactory());
configuration.setVersion(3);