public static Object deserialize(byte[] objectData) { if (objectData == null) { throw new IllegalArgumentException("The byte[] must not be null");
public static Object deserialize(InputStream inputStream) { if (inputStream == null) { throw new IllegalArgumentException("The InputStream must not be null");
    public static Object deserialize(byte[] objectData) {        if (objectData == null) {            throw new IllegalArgumentException("The byte[] must not be null");        }        ByteArrayInputStream bais = new ByteArrayInputStream(objectData);        return deserialize(bais);    }