@Override public PeMSProfile build() { try { PeMSProfile record = new PeMSProfile(); record.pems = fieldSetFlags()[0] ? this.pems : (java.util.List<edu.berkeley.path.model_elements_base.PeMS>) defaultValue(fields()[0]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } }