@Override
    public void serialize(PdxWriterImpl writer, Object obj, boolean optimizeWrite) {
      try {
        if (optimizeWrite) {
          writer.writeLong(getLong(obj));
        } else {
          writer.writeLong(getName(), getLong(obj));
        }
      } catch (Exception ex) {
        handleException(true, obj, ex);
      }
    }
Given a class, figure out which fields we're interested in serializing. The class' entire
hierarchy will be traversed and used. Transients and statics will be ignored.

@param clazz the <code>Class</code> we're interested in
@return a list of fields to be used when this class is (de)serialized
geode-core/src/main/java/org/apache/geode/pdx/internal/AutoSerializableManager.java