}
private Object convertToGridType(Object value, Type propertyType) {
Tuple dummy = new Tuple();
GridType gridType = typeTranslator().getType( propertyType );
gridType.nullSafeSet( dummy, value, new String[] { "key" }, null );
return dummy.get( "key" );
}
private TypeTranslator typeTranslator() {
return sessionFactory.getServiceRegistry().getService( TypeTranslator.class );