}
} else if (nodeType == NodeType.DATA_NODE) {
if (n instanceof DataNode) {
nodes.add(n);
}
<BUG>} else if (nodeType == NodeType.ASSAY_NODE) {
if (n instanceof AssayNode) {
nodes.add(n);
}
} else if (nodeType == NodeType.PROTOCOL_EXECUTION_NODE){
</BUG>
if (n instanceof ProtocolExecutionNode) {

}
public List<ISANode> getNodes() {
return nodeList;
}
public List<ISANode> getNodes(NodeType nodeType) {
List<ISANode> nodes = new ArrayList<ISANode>();
for (ISANode n : nodeList) {
if (nodeType == NodeType.MATERIAL_NODE) {
if (n instanceof MaterialNode) {
