Cannot Make a reference to the non static method getEMF from the type Controller
This has absolutely nothing to do with doGet or doPost being static. Your method
getEMF is supposed non-static but you are accessing it in a static fashion. So either
a) Add a static keyword to the getEMF method
--- OR ---
b) Create an object of Controller and then call getEMF from the object.