<BUG>package org.xwiki.rest.internal;import org.apache.commons.lang3.StringUtils;</BUG><CONTEXT><extra_id_0>import org.xwiki.component.manager.ComponentManager;import org.xwiki.context.Execution;import org.xwiki.model.reference.EntityReferenceSerializer;</CONTEXT>
import java.net.URI;import javax.ws.rs.core.UriBuilder;import org.apache.commons.httpclient.URIException;import org.apache.commons.httpclient.util.URIUtil;import org.apache.commons.lang3.StringUtils;