@SuppressWarnings("nls")
	public static final Point toPoint(String encoded) throws NumberFormatException {
		if (encoded == null) {
			throw new NumberFormatException("Not a point");
		}
		String[] parts = encoded.split(",", 2);
		if (parts.length != 2) {
			throw new NumberFormatException("Not a point");
		}
		return new Point(Integer.parseInt(parts[0].trim()), Integer.parseInt(parts[1].trim()));
	}