+ /**\r
+ * To be overridden. Return an empty array by default.\r
+ * \r
+ * @return the array of strings to replace in the dataset\r
+ */\r
+ protected String[] getReplacementStrings() {\r
+ return new String[0];\r
+ }\r
+\r
+ /**\r
+ * Set the object replacing the given string. To be overridden. Does nothing\r
+ * by default.\r
+ */\r
+ protected void replace(ReplacementDataSet dataSet, String str)\r
+ throws Exception {\r
+\r
+ }\r
+\r
+ /**\r
+ * Replace the given string by the content of the resource with the same\r
+ * name in the same package, as a byte array.\r
+ */\r
+ protected void replaceByRessource(ReplacementDataSet dataSet, String str)\r
+ throws Exception {\r
+ Resource zipResource = new ClassPathResource(inPackage(str));\r
+\r
+ dataSet.addReplacementObject(str, IOUtils.toByteArray(zipResource\r
+ .getInputStream()));\r
+ }\r
+\r