id.setReference (ref);
    public static ReferenceTypeId newReferenceTypeId (SoftReference ref)    {      ReferenceTypeId id;      Class clazz = (Class) ref.get ();      if (clazz == null)	return null;      if (clazz.isArray ())	id = new ArrayReferenceTypeId ();      else if (clazz.isInterface ())	id = new InterfaceReferenceTypeId ();      else	id = new ClassReferenceTypeId ();      synchronized (_ridLock)	{	  id.setId (++_lastRid);	}      return id;    }