/** * This constructor allows us to use reflection for loading old class keys. * This is useful because we can then create distributions that do not have * all of the classes required for all the old keys (such as trees package classes). */ private KeyLookup(String className, String oldKey) { //Class<?> keyClass; Type keyClass; try { //keyClass = Class.forName(className); keyClass = Type.GetType(className); } catch(SystemException e) { CoreLabel.GenericAnnotation<Object> newKey = () => typeof(Object); keyClass = newKey.getClass(); } this.coreKey = ErasureUtils.uncheckedCast(keyClass); this.oldKey = oldKey; }