private static boolean serializeField(Field f){
  int mod=f.getModifiers();
  return !Modifier.isStatic(mod) && !Modifier.isTransient(mod);
}

private static boolean serializeField ( Field f ) { int mod = f . getModifiers ( ) ; return ! Modifier . isStatic ( mod ) && ! Modifier . isTransient ( mod ) ; }
whether the field must be serialized .
