Why this method ? You should pass the magentoUrl