* : the new Unit (an InstanceSpecification stereotyped with a Unit).
*/
public void setUnitForPrimitiveType(Element pt, InstanceSpecification is) {
if (is != null && pt != null) {
final Stereotype valueType = pt.getAppliedStereotype("SysML::Blocks::ValueType");
final Unit newUnit = (Unit)is.getStereotypeApplication(is
.getAppliedStereotype("SysML::Blocks::Unit"));
pt.setValue(valueType, "unit", newUnit);
}
}