changed response type in updateApplication, refractored AcrtionFuntion.java