} else {
address = getClientAddress(sd);
if (address == null) {
address = "/";
}
<BUG>}
Bus bus = contextRoot != null
? httpServiceManager.registerServletAndGetBus(contextRoot, callingContext, sref) : null;</BUG>
LOG.info("Creating a " + iClass.getName()
+ " endpoint via JaxRSPojoConfigurationTypeHandler, address is " + address);

} else {
address = getClientAddress(sd);
if (address == null) {
address = "/";
}
}
Bus bus = createBus(sref, callingContext, contextRoot);
LOG.info("Creating a " + iClass.getName()
+ " endpoint via JaxRSPojoConfigurationTypeHandler, address is " + address);
