//update the name of the class that is the base resource
helper.setJavaResourceClass(getResourceClass(capabilities).getName());
//add the capabilities
for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
helper.addCapability((Capability)i.next());
}
writeToFileCheck(descriptorDocument, descriptorFile);
}