try {
Module.registerURLStreamHandlerFactoryModule(Module.getBootModuleLoader().loadModule(ModuleIdentifier.create("org.jboss.vfs")));
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setVersion(2);
configuration.setClassResolver(new SimpleClassResolver(DomainServerMain.class.getClassLoader()));
unmarshaller = factory.createUnmarshaller(configuration);
byteInput = Marshalling.createByteInput(initialInput);
unmarshaller.start(byteInput);
final ServerTask task = unmarshaller.readObject(ServerTask.class);
unmarshaller.finish();
containerFuture = task.run(Arrays.<ServiceActivator>asList(new ServiceActivator() {