@Override
    public void applyExternalChanges(SharingProfile existingObject,
            APISharingProfile object) {

        // Update the sharing profile
        existingObject.setPrimaryConnectionIdentifier(object.getPrimaryConnectionIdentifier());
        existingObject.setName(object.getName());
        existingObject.setParameters(object.getParameters());
        existingObject.setAttributes(object.getAttributes());

    }
Translator which converts between SharingProfile objects and
APISharingProfile objects.
guacamole/src/main/java/org/apache/guacamole/rest/sharingprofile/SharingProfileObjectTranslator.java