String hal = HalHmacResourceFactory.INSTANCE
.newUserResource(locale, path, clientUser)
.get(String.class);
// Read the HAL
ReadableRepresentation rr = unmarshalHal(hal);
Map<String, Object> properties = rr.getProperties();
CustomerUserDto customerUser = new CustomerUserDto();
// Mandatory properties (will cause IllegalStateException if not present)
// Optional direct properties
// Optional properties