Room location = null; try { location = ResourceUtils.getDeviceLocationRoom(pattern.target); } catch (SecurityException ignore) {} final boolean outside = location != null && location.type().isActive() && location.type().getValue() == 0;
Room location = null; try { location = ResourceUtils.getDeviceLocationRoom(pattern.target); } catch (SecurityException ignore) {} final boolean outside = location != null && location.type().isActive() && location.type().getValue() == 0;