@Nullable public static Block loadOneBlockFromXml(InputStream is,BlockFactory blockFactory) throws BlocklyParserException {
  List<Block> temp=loadFromXml(is,blockFactory,null);
  if (temp.isEmpty()) {
    return null;
  }
  return temp.get(0);
}

@ Nullable public static Block loadOneBlockFromXml ( InputStream is , BlockFactory blockFactory ) throws BlocklyParserException { List < Block > temp = loadFromXml ( is , blockFactory , null ) ; if ( temp . isEmpty ( ) ) { return null ; } return temp . get ( 0 ) ; }
convenience function to load only one block .
