public boolean checkNode(final NodeModel node) {
final URI nodeLink = NodeLinks.getValidLink(node);
if (nodeLink != null && checkLink(nodeLink))
return true;
final NodeAttributeTableModel attributes = NodeAttributeTableModel.getModel(node);
if(attributes == null){
return false;
}
final int rowCount = attributes.getRowCount();
for(int i = 0; i < rowCount; i++){
final Attribute attribute = attributes.getAttribute(i);
final Object value = attribute.getValue();
if (value instanceof URI && checkLink((URI)value))
return true;
}
return false;