final String originalUrl,
final String artifactId) {
final String requestId = kryo.readObject(buffer, String.class);
try {
return (SamlService) CONSTRUCTOR.newInstance(id, originalUrl, artifactId, new SimpleHttpClient(), requestId);
} catch (final Exception e) {
throw new IllegalStateException("Error creating SamlService", e);
}
}