} else {
endpoint = SslServerEndpoint.getInstance(subjectProvider
.getServerSubject(), null, null, 0);
}
if (!inhibitWrapper) {
endpoint = new ServerEndpointWrapper(endpoint);
}
return endpoint;
} catch (Exception e) {
e.printStackTrace();
throw new TestException("Failed to instantiate factory", e);