108109110111112113114115116117118119
} private CapabilityMap _getCapabilities(Agent agent) { CapabilitiesDocument doc = _getCapabilityDocument(); Object[][] capArray = doc.getCapabilities(agent); if (capArray != null) return new CapabilityMap(capArray); return _EMPTY_MAP; }
126127128129130131132133134135136
synchronized (this) { if (_document == null) { CapabilitiesDocument doc = CapabilitiesDocumentParser.createInstance(_capUrl); _document = doc; } }