code: private Entity parseEnt(final Node node, final EntitySet set) throws ResourceXMLParserException {
          final Entity ent = parseResourceRef(set, node);
          ent.setResourceType(node.getName());
          parseEntProperties(ent, node);
          parseEntSubAttributes(ent, node);
          return ent;
      }
docs: Given xml Node and EntitySet, parse the entity defined in the Node
  
  @param node DOM node
  @param set  entity set holder
  
  @return parsed Entity object
  
  @throws ResourceXMLParserException if entity definition was previously found, or another error occurs