});
if (buildOrders == null) {
return false; // errors are reported to context.
}
try {
Document serializedBuildOrders = new Document(XmlSerializer.serialize(buildOrders, new SkipDefaultValuesSerializationFilters()));
File file = new File(projectSystemDirectory, ErlangBuilder.DEPENDENCIES_CONFIG_FILE_PATH);
//noinspection ResultOfMethodCallIgnored
file.getParentFile().mkdirs();
JDOMUtil.writeDocument(serializedBuildOrders, file, SystemProperties.getLineSeparator());
} catch (XmlSerializationException e) {