MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(1);
try {
JAFuture future = new JAFuture();
Mailbox mailbox = mailboxFactory.createMailbox();
JAFactory factory = new JAFactory();
factory.initialize(mailbox);
(new JidFactories()).initialize(mailbox, factory);
UnionJidFactory siuf =
new UnionJidFactory("siUnion", StringJidFactory.fac.actorType, "siUnion");
factory.registerActorFactory(siuf);
UnionJid siu1 = (UnionJid) factory.newActor("siUnion");