If a custom or an express prescript of universal or particular law is lacking in a certain matter, a case, unless it is penal, must be resolved in light of laws issued in similar matters, general principles of law applied with canonical equity, the jurisprudence and practice of the Roman Curia, and the common and constant opinion of learned persons.
Source: Code of Canon Law (Vatican.va)