/**
  * Wraps attribute fields (entered as normal) into a suitable container for submission.
  * Throws an error if $entity is not something for which attributes are known to exist.
  * @return array
  */
 public static function wrap_attributes($arr, $entity)
 {
     return submission_builder::wrap_attributes($arr, $entity);
 }