void (String schemaFileName, byte[] schemaContent) { try { final String fullFileName = tempDir.getPath() + File.separatorChar + schemaFileName; FileUtils.saveStreamContentAsFile( fullFileName, new ByteArrayInputStream(schemaContent) ); } catch (IOException e) { throw new RuntimeException(e); } }