public String getTypeCode() {
   if (hasType()) return _type.getCode();
   return null;
 }