class CommentDtoMapperDecorator implements CommentDtoMapper {

    @Override
    public CommentDto map(GithubIssueCommentsResult in) {
        CommentDto comment = delegate.map(in);
        if (comment != null) {
            comment.setUserName(in.getUser().getLogin());
            comment.setUserUrl(in.getUser().getUrl());
            comment.setUserAvatar(in.getUser().getAvatarUrl());
        }
        return comment;
    }

}