private boolean isDuplicateName ( String name ) { if ( this . existingNames != null ) { final String newName = Strings . nullToEmpty ( name ) ; for ( final String existingName : this . existingNames ) { if ( newName . equals ( existingName ) ) { return true ; } } } return false ; }
Returns whether the name is already in use by an existing SRE .