protected void initKey() {
if (TangoAttributeHelper.isAttributeReadOnly(getDeviceName(), getAttributeName())) {
displayReadValue = true;
}
key = new TangoKey();
if (displayReadValue) {
TangoKeyTool.registerAttribute(key, tangoHelper.getDeviceName(),
tangoHelper.getEntityName());
}
else {
TangoKeyTool.registerWriteAttribute(key, tangoHelper.getDeviceName(),
tangoHelper.getEntityName());
}
// init attribute quality key
qualityKey = new TangoKey();
TangoKeyTool.registerAttributeQuality(qualityKey, getDeviceName(), getAttributeName());
}