//
if (args.length == 0) {
System.out.println("Enter a list of file paths or URIs that have content like this:");
try {
Resource resource = resourceSet.createResource(URI.createURI("http:///My.xml"));
DocumentRoot documentRoot = XmlFactory.eINSTANCE.createDocumentRoot();
SecurityModelType root = XmlFactory.eINSTANCE.createSecurityModelType();
documentRoot.setSecurityModel(root);
resource.getContents().add(documentRoot);
resource.save(System.out, null);
}
catch (IOException exception) {
exception.printStackTrace();