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