In 2005 he returned to Slovenia and became a professor of international law; from May 2006 to December 2007 he served as the vice dean of student affairs at the University of Ljubljana's Faculty of Law.