Add Role method to abstractNode.