code: public boolean isPolled(final String polledObject) throws DevFailed {
          try {
              return AttributeGetterSetter.getAttribute(polledObject, device.getAttributeList()).isPolled();
          } catch (final DevFailed e) {
              return device.getCommand(polledObject).isPolled();
          }
      }
docs: Check if an attribute or an command is polled
  
  @param polledObject The name of the polled object (attribute or command)
  @return true if polled
  @throws DevFailed