class JsonUtils {

	public static JsonNode createRestrictedEntity(JsonApiIdentifiable entity, List<String> properties) {

		ObjectNode originalNode = objectMapper.valueToTree(entity);
		ObjectNode restrictedNode = objectMapper.createObjectNode();

		properties.forEach(propertyName -> restrictedNode.set(propertyName, originalNode.get(propertyName)));

		return restrictedNode;
	}

	private  JsonUtils();

}