public void jsSet_content(Object content) throws ScriptException {
if (content instanceof String) {
try {
this.resource.setContent((String) content);
} catch (RegistryException e) {
throw new ScriptException("Registry Exception while setting content property", e);
}
} else if (content instanceof XMLObject) {
try {
this.resource.setContent(AXIOMUtil.stringToOM(content.toString()));
} catch (Exception e) {
throw new ScriptException(e);
}
} else {
throw new ScriptException("Invalid property type for content");
}
}