class MessageToBytesMapper implements IMessageMapper<byte[]> {

    @Override
    public IObject deserialize(final byte[] serializedInput) throws ResolutionException {
        if (serializedInput.length == 0) {
            return IOC.resolve(Keys.getOrAdd("EmptyIObject"));
        }
        String string = new String(serializedInput);
        string = string.substring(string.indexOf('{'), string.lastIndexOf('}') + 1);
        return IOC.resolve(Keys.getOrAdd("info.smart_tools.smartactors.iobject.iobject.IObject"), string);
    }

}