private function CreateActivity($activityCode, $activityName) { if (CBPActivity::IncludeActivityFile($activityCode)) { return CBPActivity::CreateInstance($activityCode, $activityName); } else { throw new Exception('Activity is not found.'); } }