Photo scimPhoto;
try {
scimPhoto = new Photo.Builder()
.setType(entity.getType())
.setValue(new URI(entity.getValue()))
<BUG>.setPrimary(entity.isPrimary())
.build();</BUG>
} catch (URISyntaxException e) {
throw new OsiamException(e.getMessage(), e);
}

Photo scimPhoto;
try {
scimPhoto = new Photo.Builder()
.setType(entity.getType())
.setValue(new URI(entity.getValue()))
.setPrimary(entity.isPrimary())
.setDisplay(entity.getDisplay())
.build();
} catch (URISyntaxException e) {
throw new OsiamException(e.getMessage(), e);
}
