if (changeSet != null) {
String body = scriptBody.toString();
if (body.trim().isEmpty()) {
throw new ParseException("No JavaScript found for changeset " + toString(changeSet), -1);
}
Script script = new Script();
script.setBody(body);
changeSet.add(script);
}
}