private static void markAsWritten(Field field)
 {
     FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field);
     if (info != null)
     {
         info.setWritten();
     }
 }
 public static boolean isWritten(Field field) {
   FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field);
   return info == null || info.isWritten();
 }