public static Name
fromString(String s, Name origin) throws TextParseException {
	if (s.equals("@") && origin != null)
		return origin;
	else if (s.equals("."))
		return (root);

	return new Name(s, origin);
}
Create a new name from a string and an origin.  This does not automatically
make the name absolute; it will be absolute if it has a trailing dot or an
absolute origin is appended.  This is identical to the constructor, except
that it will avoid creating new objects in some cases.
@param s The string to be converted
@param origin If the name is not absolute, the origin to be appended.
@throws TextParseException The name is invalid.
src/main/java/core/org/xbill/DNS/Name.java