What if tableName is 'gpx data' ?
You should do this:
```java
TableLocation requestedTable = TableLocation.parse(tableName);
String wptTableName = new TableLocation(requestedTable.getCatalog(), requestedTable.getSchema(), requestedTable.getTable() + WAYPOINT); 
```
The value of wptTableName will be  'gpx data_waypoint' instead of 'gpx data'_waypoint