PreparedReleaseModel model = new PreparedReleaseModel();
model.setPreparedReleases( preparedReleases );
try
{
ContinuumPrepareReleasesModelXpp3Writer writer = new ContinuumPrepareReleasesModelXpp3Writer();
FileWriter fileWriter = new FileWriter( file );
writer.write( fileWriter, model );
}
catch ( IOException e )
{
throw new ContinuumReleaseException( "Failed to write prepared releases in file", e );
}