@Override
  public void toData(DataOutput out,
      SerializationContext context) throws IOException {
    super.toData(out, context);
    String[] requiredRoleNames = new String[requiredRoles.size()];
    Iterator iter = requiredRoles.iterator();
    for (int i = 0; i < requiredRoleNames.length; i++) {
      Role role = (Role) iter.next();
      requiredRoleNames[i] = role.getName();
    }
    DataSerializer.writeStringArray(requiredRoleNames, out);
  }
Constructs new RoleEventImpl.

@param requiredRoles set of required roles that are affected by this event
geode-core/src/main/java/org/apache/geode/internal/cache/RoleEventImpl.java