}
}
public static Serializable getPayloadAsSerializable(Event event)
{
EventPayload payload = event.getPayload();
if (payload == null)
{
return null;
}
ParameterValidation.throwIllegalArgExceptionIfNull(event, "Payload expected type");
Object any = payload.getAny();
if (any == null)
{
NamedStringArray namedStringArray = payload.getNamedStringArray();
if (namedStringArray != null)
{
return new SerializableNamedStringArray(namedStringArray);
}
else