public static function createInstance($networkClassName)
{
$affiliate = null;
try {
$affiliate = new $networkClassName();
} catch (\Exception $e) {
throw new \Exception('Error creating instance ' . $networkClassName . ' - ' . $e->getMessage());
}
return $affiliate;
}