throws CreationException,
MetadataException {
if (req == null) {
throw new CreationException("no CreateRequest?");
}
if (req.getName() == null) {
throw new CreationException("no createrequest name?");
}
final RequiredVMM reqVMM = req.getRequiredVMM();
if (reqVMM != null && reqVMM.getType() == null) {
throw new MetadataException(
"RequiredVMM encountered with missing type");
}
final Kernel kernel = req.getRequestedKernel();
if (kernel != null && kernel.getKernel() == null) {
throw new MetadataException(
"RequestedKernel encountered with missing location URI");
}
final Context context = req.getContext();
if (context != null) {
if (context.getBootstrapPath() == null) {
throw new CreationException(
"Context encountered with missing bootstrap path");
}
if (context.getBootstrapText() == null) {
throw new CreationException(
"Context encountered with missing bootstrap text");
}
}
}