class MondrianConnectionAttachmentsProcessor implements AttachmentsProcessor<MondrianConnection> {

    @Override
    public MondrianConnection processAttachments(MondrianConnection serverObject, Map<String, InputStream> parts)
            throws MandatoryParameterNotFoundException, IllegalParameterValueException {
        setDataToFileResourceWithValidation(parts.get(ResourceMultipartConstants.SCHEMA_PART_NAME),
                serverObject.getSchema(), ResourceMultipartConstants.SCHEMA_PART_NAME);
        return serverObject;
    }

}