String[] uriSplit = splitUri(getEndpointUri());
if (uriSplit.length > 0) {
switch (ProducerType.fromUri(uriSplit[0])) {
case CLOSEPULLREQUEST:
return new ClosePullRequestProducer(this);
case PULLREQUESTCOMMENT:
return new PullRequestCommentProducer(this);
default:
break;
}