public Path save( final Path resource,
final ScoreCardModel model,
final Metadata metadata,
final String comment ) {
try {
final Package pkg = projectService.resolvePackage( resource );
final String packageName = ( pkg == null ? null : pkg.getPackageName() );
model.setPackageName( packageName );
ioService.write( Paths.convert( resource ),
GuidedScoreCardXMLPersistence.getInstance().marshal( model ),
metadataService.setUpAttributes( resource, metadata ),