* @throws CapabilityFetchException if the capabilities couldn't be retrieved
* or parsed.
*/
public RobotAccountData fetchCapabilities(RobotAccountData account, String activeApiUrl)
throws CapabilityFetchException {
RobotCapabilitiesParser parser = new RobotCapabilitiesParser(
account.getUrl() + Robot.CAPABILITIES_URL, connection, activeApiUrl);
RobotCapabilities capabilities = new RobotCapabilities(
parser.getCapabilities(), parser.getCapabilitiesHash(), parser.getProtocolVersion());
return new RobotAccountDataImpl(account.getId(), account.getUrl(), account.getConsumerSecret(),
capabilities, account.isVerified());
}