public boolean delete(Integer value){
DirectoryManager locator = HyFlow.getLocator();
String next = HEAD;
String prev = null;
do{ // find the last node
_Node node = (_Node)locator.open(next, "r");
if(value.equals(node.getValue())){
_Node deletedNode = (_Node)locator.open(next); //reopen for write to be deleted
_Node prevNode = (_Node)locator.open(prev); //open previous node for write
prevNode.setNext(deletedNode.getNext());
locator.delete(deletedNode);