Exporter exporter = (Exporter)config.getEntry(component, entry, Exporter.class, null);
if(exporter==null) {
exporter = (Exporter)config.getEntry(DEFAULT_COMPONENT, ENTRY_NAME, Exporter.class, null);
if(exporter==null) {
try {
exporter = new BasicJeriExporter(getServerEndpoint(), new BasicILFactory(), false, true);
} catch (UnknownHostException e) {
logger.warn("Unable to get host address, defaulting to localhost", e);
exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0), new BasicILFactory(), false, true);
}
}
}
if(logger.isTraceEnabled())
logger.trace(String.format("Created %s for %s.%s", exporter, component, entry));