Refactoring recuperaDAML.php