System.err.println("Bad node rendering option (color) in preferences.");
}
// set shape mode
try {
NodeShape shape = NodeShape.valueOf(node.get(
NodePreferencesIds.NODE_SHAPE,
NodeShape.getDefault().toString()));
nodeShape.setShapeMode(shape);
} catch (IllegalArgumentException ex) {
// bad node rendering option. ignore.