Deprecated warPath (replaced by warFile). Added validation for checking key file presence.