getContextIdValue

Get the context ID value as a String (Java-friendly).