public ODocument create(String name,String language,String code,boolean isLibrary,boolean active,JsonNode initialStore) throws ScriptException{
if (Logger.isTraceEnabled()) Logger.trace("Method Start");
checkValidName(name);
if (exists(name)){
throw new ScriptAlreadyExistsException("Script "+name+" already exists");
}
ODocument doc = createPrivileged(name,language,code,isLibrary,active,initialStore);
if (Logger.isTraceEnabled()) Logger.trace("Method End");
return doc;
}