protected <R> R readAttribute(Address address, String name, Class<R> resultType) throws Exception {
return readAttribute(address, name, resultType, 10);
}
protected <R> R readAttribute(Address address, String name, Class<R> resultType, int timeoutSec) throws Exception {
Operation op = new ReadAttribute(address, name);
Result res = getASConnection().execute(op, timeoutSec);
if (!res.isSuccess()) {
if (res.isTimedout()) {
throw new TimeoutException("Read attribute operation timed out");