variables cannot be null here
using equals is safer
throw the exception
add @SuppressWarnings("unused") to subclasses of EOGenericRecord where necessary
remove unnecessary SuppressWarnings annotations