public static String adjustAuthorName(final String authorName,String committerName){
  if (!authorName.equals(committerName)) {
    committerName=authorName + ", via " + committerName;
  }
  return committerName;
}

public static String adjustAuthorName ( final String authorName , String committerName ) { if ( ! authorName . equals ( committerName ) ) { committerName = authorName + ", via " + committerName ; } return committerName ; }
return committer name based on author name and committer name
