}
public void storeObject(OutputStream stream, Map parameters, Object object) throws ConverterException {
Writer writer = new OutputStreamWriter(stream);
try {
Marshaller marshaller = new Marshaller( writer );
marshaller.setMapping((Mapping)this.mappings.get(parameters.get(ProfileLS.PARAMETER_PROFILETYPE)));
boolean suppressXSIType = this.defaultSuppressXSIType;
Boolean value = (Boolean)parameters.get("suppressXSIType");
if (value != null) {
suppressXSIType = value.booleanValue();
}
marshaller.setSuppressXSIType(suppressXSIType);
marshaller.marshal(object);
writer.close();
} catch (MappingException e) {
throw new ConverterException("Can't create Unmarshaller", e);
} catch (Exception e) {
throw new ConverterException(e.getMessage(), e);