public static String[] splitMacroBodyIntoContentAndConfig(String configWithContent) throws InvalidFileFormatException {
String[] splitted = configWithContent.split("\\[content\\]", 2);
if (configWithContent == null || splitted.length < 2) {
throw new InvalidFileFormatException("no [content] block found. Invalid format.");
}
return splitted;
}