if (arch == null) {
throw new CannotTranslateException(
"CPUArchitecture_Type may not be missing");
}
final ProcessorArchitectureEnumeration archEnum =
arch.getCPUArchitectureName();
if (archEnum == null) {
throw new CannotTranslateException(
"ProcessorArchitectureEnumeration may not be missing");
}
final String archStr = (String) archMap.get(archEnum);
if (archStr == null) {
throw new CannotTranslateException(
"ProcessorArchitectureEnumeration contains " +
"unrecognized value '" + archEnum.toString() + "'");
}
ResourceAllocation ra = req.getRequestedRA();
if (ra == null) {
ra = this.repr._newResourceAllocation();