import com.orientechnologies.orient.core.record.impl.ORecordBytes;
public class AssetService {
public static ODocument create(String name, String meta) throws InvalidJsonException,Throwable{
AssetDao dao = AssetDao.getInstance();
ODocument doc=dao.create(name);
try{
if (meta!=null && !meta.trim().isEmpty()) {
ODocument metaDoc=(new ODocument()).fromJSON("{ 'meta' : " + meta + "}");
doc.merge(metaDoc, true, false);