Retrieve the farm ID provisioned in the client repository.
ODPAppSettings odpAppSettings = new ODPAppSettings(); odpAppSettings.getFarmID();