exploring getMediaResourceRepresentation, refactor auth