public void setProperties(Properties properties) {
this.properties = properties;
}
public NodeState getState() {
return new NodeState(labels.getSimple(), icon, startPublicationDate == null ? -1 : startPublicationDate.getTime(),
endPublicationDate == null ? -1 : endPublicationDate.getTime(), visibility,
pageReference != null ? PageKey.parse(pageReference) : null,
restrictOutsidePublicationWindow,
new AttributesState.Builder(properties).build());
}