Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet);
if (nodeSet == null || nodeSet.isEmpty()) return ""; Node node = firstNode(nodeSet); String ret = null;
  public static String _name(Node context, Collection nodeSet)  {    Node node = (nodeSet == null || nodeSet.size() == 0) ? context :      firstNode(nodeSet);    switch (node.getNodeType())      {      case Node.ATTRIBUTE_NODE:      case Node.ELEMENT_NODE:      case Node.PROCESSING_INSTRUCTION_NODE:        return node.getNodeName();      default:        return "";      }  }