return EdmPrimitiveTypeKind.Int16;
} else if (value instanceof Byte || byte.class.isAssignableFrom(cls)) {
return EdmPrimitiveTypeKind.SByte;</BUG>
} else if (value instanceof BigDecimal) {
return EdmPrimitiveTypeKind.Decimal;
<BUG>} else if (value instanceof Double || double.class.isAssignableFrom(cls)) {
return EdmPrimitiveTypeKind.Double;
} else if (value instanceof Float || float.class.isAssignableFrom(cls)) {
return EdmPrimitiveTypeKind.Single;</BUG>
} else if (value instanceof Calendar || value instanceof Date || value instanceof java.sql.Timestamp) {

return EdmPrimitiveTypeKind.Int16;
} else if (value instanceof Byte) {
return EdmPrimitiveTypeKind.SByte;
} else if (value instanceof BigDecimal) {
return EdmPrimitiveTypeKind.Decimal;
} else if (value instanceof Double) {
return EdmPrimitiveTypeKind.Double;
} else if (value instanceof Float) {
return EdmPrimitiveTypeKind.Single;
} else if (value instanceof Calendar || value instanceof Date || value instanceof java.sql.Timestamp) {
