Refactored the two process file methods in ContentManager