// Skip security, which was removed after DDMS 4.1.
// Skip optional extensible elements.
printHead("ddms:resource Attributes (all required)");
Resource resource = (Resource) inputLoop(Resource.class);
println("The DDMS Resource is valid!");
if (resource.getValidationWarnings().isEmpty())
println("No warnings were recorded.");
else {
println("The following warnings were recorded:");
for (ValidationMessage warning : resource.getValidationWarnings())
println(" [WARNING] " + warning.getLocator() + ": " + warning.getText());
}
printHead("Saving the Resource");
if (confirm("Would you like to save this file?")) {