Currently getValuePtr is written as a generic class. This contradicts the recommendation that only primitive types should be supported for values in the Java BMI--see, e.g., here. The getValuePtr function should be specified through multiple constructors to primitive types, like getValue.