throw new IllegalAccessError("Use create(String name, String fileName, String contentType, byte[] content) instead");
}
public ODocument create(String name, String fileName, String contentType, byte[] content) throws Throwable{
ODocument asset=super.create();
ORecordBytes record = new ORecordBytes(content);
asset.field(BINARY_FIELD_NAME,record);
asset.field("name",name);
asset.field("fileName",fileName);
asset.field("contentType",contentType);
asset.field("contentLength",content.length);