if (buildSpec != null) {
Xpp3Dom[] existingBuildCommands = buildSpec.getChildren(ELT_BUILD_COMMAND);
for (int j = 0; j < existingBuildCommands.length; j++) {
Xpp3Dom buildCommandName = existingBuildCommands[j].getChild(ELT_NAME);
if (buildCommandName != null) {
buildCommands.add(new BuildCommand(existingBuildCommands[j]));
}
}
}
// Added the below code to preserve the Symbolic links
Xpp3Dom linkedResourcesElement = dom.getChild(ELT_LINKED_RESOURCES);