Local man given four-year prison term