// this is done only to update agent UI info regarding Module - which isn't available
// until projectPropertiesMap has been set.
fireAgentStatusChanged();
final Element buildResults;
final Builder nestedBuilder;
try {
nestedBuilder = createBuilder(nestedBuilderElement);
} catch (CruiseControlException e) {
String message = "Failed to configure nested Builder on agent";
LOG.error(message, e);
System.err.println(message + " - " + e.getMessage());
throw new RemoteException(message, e);
}
try {
buildResults = nestedBuilder.build(projectPropertiesMap);
} catch (CruiseControlException e) {
String message = "Failed to complete build on agent";
LOG.error(message, e);
System.err.println(message + " - " + e.getMessage());
throw new RemoteException(message, e);