removed unnecessary try-catch in GetCapability()