// Get the layout.
if (layoutName != null) {
RuntimeDeviceLayout deviceLayout =
getDeviceLayout(layoutName);
if (deviceLayout == null) {
throw new LayoutException(EXCEPTION_LOCALIZER.format(
"no-suitable-device-layout",
new Object[]{layoutName,
getDeviceName()}));
}