if (pendingResource != null) {
// Actually write the bytes to disk.
pendingResource.commit(logger);
// Add the GeneratedResource to the ArtifactSet
GeneratedResource toReturn = new StandardGeneratedResource(
currentGenerator, pendingResource.getPartialPath(),
pendingResource.getFile());
commitArtifact(logger, toReturn);
/*