if (instance != null) { return instance; } else { throw new DomainException(RootDomainObject.class.getSimpleName() + " not initialized. Run " + RootDomainObject.class.getName() + ".init() first."); }
if (instance == null) { init(); } return instance;
    public static RootDomainObject getInstance() {        if (instance != null) {            return instance;        } else {            throw new DomainException(RootDomainObject.class.getSimpleName() + " not initialized. Run "                    + RootDomainObject.class.getName() + ".init() first.");        }    }