public static DataGeneratorException convert(
      com.streamsets.pipeline.lib.generator.DataGeneratorException original
  ) {
   return new DataGeneratorException(
      original.getErrorCode(),
      original.getParams()
    );
  }
public static DataGeneratorException convert(
      com.streamsets.pipeline.lib.generator.DataGeneratorException original
  ) {
   return new DataGeneratorException(
      original.getErrorCode(),
      original.getParams()
    );
  }
public static DataGeneratorException convert ( com . streamsets . pipeline . lib . generator . DataGeneratorException original ) { return new DataGeneratorException ( original . getErrorCode ( ) , original . getParams ( ) ) ; }
Change package name for DataGeneratorException.

@param original Original exception from *.lib.* package
@return New exception from *.api.* package
Change package name for DataGeneratorException .