implement url resolve for rhino/java impl