Reimplemented getInstance() custom settings methods.

Fix for #1046