@Override public boolean existsThing(Thing thing) { if (thing == null) { return false; } try { return getClient().describeThing(new DescribeThingRequest().withThingName(cloudIDForThing(thing))) != null; } catch (Exception e) { return false; } }
@Override public boolean existsThing(Thing thing) { if (thing == null) { return false; } try { return getClient().describeThing(new DescribeThingRequest().withThingName(cloudIDForThing(thing))) != null; } catch (Exception e) { return false; } }