Homologated refinancing agreements and their validity in situations related to a foreign legal system