deleted unused files
converted from Groovy to Java since it will be called for every request and the Groovy overhead will add a lot to the request processing time
cleanup