if (serializerFactory != null) {
try {
server.serializerFactory(classLoader.loadClass(serializerFactory).newInstance()).sendCollectionType(sendCollectionType);
} catch (final Exception e) {
throw new OpenEJBRuntimeException(e);
}
} else {
server.sendCollectionType(sendCollectionType);
}
server.createSkeleton(ProxyEJB.simpleProxy(beanContext, new Class<?>[]{remoteItf}), remoteItf);
try {
LOGGER.info("Hessian(url=" + registry.deploy(classLoader, server, virtualHost, appName(app, beanContext), authMethod, transportGuarantee, realmName, String.class.cast(beanContext.getDeploymentID())) + ", interface=" + remoteItf.getName() + ")");
} catch (final URISyntaxException e) {
throw new OpenEJBRuntimeException(e);
}
} finally {
Thread.currentThread().setContextClassLoader(old);
}
}