String classname = unserializer.getUTF16String();
unserializer.consume('s');
String pathinfo = unserializer.getUTF16String();
Scope scope = context.import_(pathinfo);
AnyClass self = null;
Type type = anvil.script.Grammar.follow(scope, classname);
if (type != null) {
if (type.getType() == Type.CLASS) {
self = ((ClassType)type).newInstance();
}
}
if (self == null) {
throw new UnserializationException("Couldn't create instance of '" + classname + "' at '" + pathinfo + "'");