MavenServerEmbedder (MavenEmbedderSettings settings, MavenToken token) { MavenServerUtil.checkToken(token); try { Maven3ServerEmbedderImpl result = new Maven3ServerEmbedderImpl(settings); UnicastRemoteObject.exportObject(result, 0); return result; } catch (RemoteException e) { throw wrapToSerializableRuntimeException(e); } }