add the code of checking if the file specified by some parameter is
exist in install() of MiddlewareFactory and deploy() of RecController