public static void writeOneBlockToXml(Block toSerialize,OutputStream os) throws BlocklySerializerException {
  List<Block> temp=new ArrayList<>();
  temp.add(toSerialize);
  writeToXml(temp,os);
}

public static void writeOneBlockToXml ( Block toSerialize , OutputStream os ) throws BlocklySerializerException { List < Block > temp = new ArrayList < > ( ) ; temp . add ( toSerialize ) ; writeToXml ( temp , os ) ; }
convenience function to serialize only one block .
