public function prepare($node, $row)
 {
     // Fetch and prepare the variables field.
     $node->field_project_roles[LANGUAGE_NONE] = $this->getProjectRoles($node, $row);
     // Remove any empty or illegal delta field values.
     EntityHelper::removeInvalidFieldDeltas('node', $node);
     EntityHelper::removeEmptyFieldValues('node', $node);
 }
 public function prepare($node, $row)
 {
     // Fetch and prepare the variables field.
     $node->field_variables[LANGUAGE_NONE] = $this->getVariables($node, $row);
     // Remove any empty or illegal delta field values.
     EntityHelper::removeInvalidFieldDeltas('node', $node);
     EntityHelper::removeEmptyFieldValues('node', $node);
     // Perform field validation and check for debugging information.
     if (empty($node->field_variables[LANGUAGE_NONE])) {
         $this->saveMessage('Empty variable field in data file node.', MigrationBase::MESSAGE_INFORMATIONAL);
     }
 }