Add utility method getPathAsString