@Override
  public void fromData(DataInput in,
      DeserializationContext context) throws IOException, ClassNotFoundException {
    super.fromData(in, context);
    String[] requiredRoleNames = DataSerializer.readStringArray(in);
    Set requiredRolesSet = new HashSet(requiredRoleNames.length);
    for (final String requiredRoleName : requiredRoleNames) {
      Role role = InternalRole.getRole(requiredRoleName);
      requiredRolesSet.add(role);
    }
    requiredRoles = Collections.unmodifiableSet(requiredRolesSet);
  }
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