public String toGroupPath() {
		RegistryEntry rootEntry = getRootEntry();
		ResourceInformation resourceInformation = rootEntry.getResourceInformation();

		String resourcePath;
		if (parentField != null) {
			// TODO nested resource can be queried through two means, nested or direct flat (maybe). should be stored and considered somewhere here
			ResourceInformation parentType = parentField.getParentResourceInformation();
			resourcePath = parentType.getResourcePath() + "/{id}/" + parentField.getJsonName();
		}
		else {
			resourcePath = resourceInformation.getResourcePath();
		}

		if (getIds() != null && (!resourceInformation.isNested() || !resourceInformation.isSingularNesting())) {
			resourcePath += "/{id}";
		}
		return resourcePath;
	}
public String toGroupPath ( ) { RegistryEntry rootEntry = getRootEntry ( ) ; ResourceInformation resourceInformation = rootEntry . getResourceInformation ( ) ; String resourcePath ; if ( parentField != null ) { ResourceInformation parentType = parentField . getParentResourceInformation ( ) ; resourcePath = parentType . getResourcePath ( ) + "/{id}/" + parentField . getJsonName ( ) ; } else { resourcePath = resourceInformation . getResourcePath ( ) ; } if ( getIds ( ) != null && ( ! resourceInformation . isNested ( ) || ! resourceInformation . isSingularNesting ( ) ) ) { resourcePath += "/{id}" ; } return resourcePath ; }
Replaces resource identifiers with {id} to have nice urls for e.g. tracing.