public int addBlocks(String json_string) throws IOException {
  final InputStream blockIs=new ByteArrayInputStream(json_string.getBytes());
  return loadBlocks(blockIs);
}

public int addBlocks ( String json_string ) throws IOException { final InputStream blockIs = new ByteArrayInputStream ( json_string . getBytes ( ) ) ; return loadBlocks ( blockIs ) ; }
loads and adds block templates from a string .
