code: @Override
     public Boolean apply(Principal obj)
     {
  	   if (this == obj)
  			return Boolean.TRUE;
  		if (obj == null)
  			return Boolean.FALSE;
  		if (!SecurityGroup.class.isAssignableFrom(obj.getClass()))
  			return Boolean.FALSE;
  		
  		SecurityGroup other = (SecurityGroup) obj;
  
  		return Boolean.valueOf(this.name.equals(other.getName()));
     }
docs: --------------------------------------------