You're right.  I think an API request should be made to at least make ServerExtendedProperties an api class / move into an api package. Then the above code I pasted can work.