/** Used to find the global attributes that another inspector has set so I can share it. */ GlobalAttributes findGlobalAttributes() { if (generator == null) return null; // got a problem int len = generator.getGlobalAttributeCount(); for (int i = 0; i < len; i++) if ((generator.getGlobalAttribute(i) instanceof GlobalAttributes)) return (GlobalAttributes) generator.getGlobalAttribute(i); return null; }