// Get the current "logical" instances of the service
UnsignedIntegerFourBytes[] ids = getImplementation().getCurrentInstanceIds();
if (ids == null) {
log.warning("LenientChangeAwareService got a null ID from "
+ getImplementation().getClass().getCanonicalName());
getImplementation().appendCurrentState(lc, new UnsignedIntegerFourBytes(0));
} else {
if (ids.length > 0) {
for (UnsignedIntegerFourBytes instanceId : ids) {
// Iterate through all "logical" instances and ask them what their state is
getImplementation().appendCurrentState(lc, instanceId);
}
} else {
// Use the default "logical" instance with ID 0
getImplementation().appendCurrentState(lc, new UnsignedIntegerFourBytes(0));
}
}
// Sum it all up and return it in the initial event to the GENA subscriber
StateVariable variable = getService().getStateVariable("LastChange");