try {
if(server == null) {
server = NamingFactory.create(storageImplType);
}
if(serverSocketFactory == null) {
serverSocketFactory = new DefaultServerSocketFactory();
}
Remote stub = UnicastRemoteObject.exportObject(server, rmiPort, clientSocketFactory, serverSocketFactory);
serverStub = new MarshalledObject<Remote>(stub);
} catch(Exception e) {
throw ExceptionHelper.parse(e);