class ExtensionRegistry {

    List<Extension> getExtensions() {
        if(extensions == null) {
            setExtensions();
        }
        return Collections.unmodifiableList(extensions);
    }

}