Updated the ProcessInvoker.java class to return Response object.