String path = endpoint.getEndpointURI().getPath();
if(StringUtils.isBlank(path))
{
path = ROOT;
}
<BUG>ContextHandlerCollection handlerCollection = new ContextHandlerCollection();</BUG>
if (resourceBase != null)
{
ResourceHandler resourceHandler = new ResourceHandler();
<BUG>ContextHandler resourceContextHandler = new ContextHandler(handlerCollection, path);
</BUG>
resourceHandler.setResourceBase(resourceBase);

String path = endpoint.getEndpointURI().getPath();
if(StringUtils.isBlank(path))
{
path = ROOT;
}
if (resourceBase != null)
{
ResourceHandler resourceHandler = new ResourceHandler();
ContextHandler resourceContextHandler = new ContextHandler(contexts, path);
resourceHandler.setResourceBase(resourceBase);
