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