public void remove(ViewContext context) {
    String key = getTagName(context);
    LOG.info("removing key : {}", key);
    Map<String, Object> instances = viewSingletonObjects.get(tClass);
    if( null != instances ){
      instances.remove(key);
    }
  }
Remove instance if it's already exists.
@param context ViewContext that provides username and instance name
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/UserLocal.java