code: @Override
      public final Object fromBytes(Class targetClass, byte[] bytes)
      {
          try
          {
              if (bytes == null)
              {
                  return null;
              }
              if (targetClass != null && targetClass.equals(byte[].class))
              {
                  return bytes;
              }
              ObjectInputStream ois;
              ois = new ObjectInputStream(new ByteArrayInputStream(bytes));
              Object o = ois.readObject();
              ois.close();
              return o;
          }
          catch (IOException e)
          {
              log.error("IO exception, Caused by {}.", e);
              throw new PropertyAccessException(e);
          }
          catch (ClassNotFoundException e)
          {
              log.error("Class not found exception, Caused by {}.", e);
              throw new PropertyAccessException(e);
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.property.PropertyAccessor#fromBytes(byte[])