public function pluginInstanceFromType($type) {
    $plugin = NULL;

    try {
      $plugin = $this->getDefinition($type);
      $plugin = $this->createInstance($plugin['id']);
    }
    catch (\Exception $exception) {
      \Drupal::logger('acm_sku')->notice(t("Bundle @bundle doesn't appear to
        have an implementation, please check the plugin id on your implementation
        of the SKU plugin", ['@bundle' => $type]));
    } finally {
      return $plugin;
    }
  }