PatientFlags module working with core 2.0.x

I try to modify the patientFlags module to work with openmrs-core 2.0.1. we use the class org.openmrs.web.controller.PortletController that we don’t have in this core. can i have the help of someone?

@jmaxy This looks like a class from the legacyui - you may need to add this module to your installation.

Thank you !!!