Use project reference
Wrap registry access in constructor inside a try/catch block