String url = createUlr(sessionIdInURL);
RepositoryHttpEndpointImpl elem = null;
if (repoItemHttpElemClass == RepositoryHttpPlayer.class) {
elem = new RepositoryHttpPlayerImpl(repositoryItem, sessionIdInURL,
url, this);
} else {
elem = new RepositoryHttpRecorderImpl(repositoryItem,
sessionIdInURL, url, this);
}