Please paraphrase this text
Lastly, Spanish law is applicable in the case of measures for the protection or upbringing of abandoned minors or legally incompetent persons who are in Spanish territory.
In the cases where measures are taken in order to protect or to raise abandoned minors or persons with no legal capacity located in Spain, Spanish law will apply.