public static void initInstance(ViewRegistry singleton) {
    ViewRegistry.singleton = singleton;
  }
Init the singleton instance.

@param singleton the view registry
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java