public void addPermittedDomain(String domainName){
  if (StringUtils.isEmpty(domainName)) {
    return;
  }
  if (permittedDomains == null) {
    permittedDomains=new ArrayList<>();
  }
  permittedDomains.add(domainName);
}

public void addPermittedDomain ( String domainName ) { if ( StringUtils . isEmpty ( domainName ) ) { return ; } if ( permittedDomains == null ) { permittedDomains = new ArrayList < > ( ) ; } permittedDomains . add ( domainName ) ; }
adds specified domain name to the list of permitted domains
