Feature/updatemetadatas

@jesuspg
You can optimise the execution if this method, due to you are accesing twice to metadatas.get(i), when you can assign to a local variable to access to it previously to the execution of the if sentence.