final MSubDeviceHolder<?> mBrick = ((MSubDeviceHolder<?>) mDevice);
EList<?> _msubdevices = mBrick.getMsubdevices();
for (final Object mg : _msubdevices)
{
if (mg instanceof GenericDevice) {
final GenericDevice mgenericdevice = ((GenericDevice) mg);
String _genericId = mgenericdevice
.getGenericDeviceId();
if (_genericId.equals(genericId)) {
genericDevicesList
.add(((MSubDevice<?>) mgenericdevice));
}