Patch p = (Patch)ip;
byte[] sysex = ip.getByteArray();
    public IPatch[] extractPatch(IPatch ip) {    	    Patch p = (Patch)ip;        Patch[] newPatchArray = new Patch[1];        byte [] temporarySysex = new byte[TG100Constants.PATCH_SIZE * TG100Constants.PATCH_NUMBER_LENGTH];        System.arraycopy(   p.sysex,                            TG100Constants.ALL_DUMP_OFFSET,                            temporarySysex,                            0,                            TG100Constants.PATCH_SIZE * TG100Constants.PATCH_NUMBER_LENGTH);        newPatchArray[0] = new Patch(temporarySysex, getDevice());        return newPatchArray;    }