/**
 * Copyright (c) 2010-2011 Ed Merks and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   Ed Merks - Initial API and implementation
 */
package org.eclipse.emf.common.util;

import java.util.HashMap;
import java.util.Map;

/**
 * A utility class for helping implement reflective capabilities not available with Google Widget Toolkit,
 * i.e., specifically the ability to {@link Class#isInstance(Object) instance test} and to {@link Array#newInstance(Class, int) create typed arrays}.
 * This is provided in the regular core runtime only to support single sourcing of generated client models that are also targeting the EMF GWT runtime.
 * @since 2.7
 */
public final class Reflect
{
  /**
   * A global registry of helper instances.
   */
  static final Map<Class<?>, Helper> HELPER_REGISTRY = new HashMap<Class<?>, Reflect.Helper>();
  
  public static boolean STRICT = false;

  /**
   * An interface implemented by reflective helpers.
   */
  public interface Helper
  {
    /**
     * Do an {@link Class#isInstance(Object) instanceof test}.
     */
    boolean isInstance(Object instance);

    /**
     * Create a {@link Array#newInstance(Class, int) typed array}.
     */
    Object newArrayInstance(int size);
  }
  
  /**
   * Register a helper for the given class.
   */
  public static void register(Class<?> class_, Helper helper)
  {
    HELPER_REGISTRY.put(class_, helper);
  }

  /**
   * Do an {@link Class#isInstance(Object) instanceof test}.
   */
  public static boolean isInstance(Class<?> class_, Object instance)
  {
    Helper helper = HELPER_REGISTRY.get(class_);
    if (helper != null)
    {
      return helper.isInstance(instance);
    }
    else if (STRICT)
    {
      throw new UnsupportedOperationException();
    }
    else
    {
        return true;
    }
  }
}

@@ -1075,45 +1075,194 @@
 %0A  p
-ublic static boolean STRICT = false;%0A
+rotected static boolean STRICT = false;%0A  %0A  public static boolean isStrict() %7B%0A      return STRICT;%0A  %7D%0A  %0A  public static void setStrict(boolean enable) %7B%0A      STRICT = enable;%0A  %7D%0A  
 %0A  /
@@ -2057,22 +2057,26 @@
 lse if (
-STRICT
+isStrict()
 )%0A    %7B%0A

Change public static attribute for protected + methods