@Override
    public void updateObject(ModeledAuthenticatedUser user, ModeledSharingProfile object)
            throws GuacamoleException {

        // Update sharing profile
        super.updateObject(user, object);

        // Replace existing parameters with new parameters, if any
        Collection<SharingProfileParameterModel> parameterModels = getParameterModels(object);
        parameterMapper.delete(object.getIdentifier());
        if (!parameterModels.isEmpty())
            parameterMapper.insert(parameterModels);
        
    }
Given an arbitrary Guacamole sharing profile, produces a collection of
parameter model objects containing the name/value pairs of that
sharing profile's parameters.

@param sharingProfile
    The sharing profile whose configuration should be used to produce the
    collection of parameter models.

@return
    A collection of parameter models containing the name/value pairs
    of the given sharing profile's parameters.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/sharingprofile/SharingProfileService.java