code: @Override
      public byte[] toBytes(Object object)
      {
          if (object == null)
          {
              return null;
          }
          Character data = null;
          if (object.getClass().isAssignableFrom(String.class))
          {
              data = ((String) object).charAt(0);
          }
          else
          {
              data = (Character) object;
          }
  
          return new byte[] { (byte) ((data >> 8) & 0xff), (byte) ((data >> 0) & 0xff), };
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.property.PropertyAccessor#toBytes(java.lang.Object)