code: @Override
      public/* final */Date fromBytes(Class targetClass, byte[] bytes)
      {
          try
          {
              if (bytes == null)
              {
                  return null;
              }
  
              try
              {
                  // In case date.getTime() is stored in DB.
                  LongAccessor longAccessor = new LongAccessor();
  
                  return new Date(longAccessor.fromBytes(targetClass, bytes));
              }
              catch (NumberFormatException nfex)
              {
                  return getDateByPattern(new String(bytes, Constants.ENCODING));
  
              }
          }
          catch (Exception e)
          {
              log.error("Caused by {}.", e);
              throw new PropertyAccessException(e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.property.PropertyAccessor#fromBytes(byte[])