public static byte[] responseData(byte[] response){
  return Arrays.copyOfRange(response,0,response.length - 2);
}

public static byte [ ] responseData ( byte [ ] response ) { return Arrays . copyOfRange ( response , 0 , response . length - 2 ) ; }
extracts the data payload of a response apdu : everything except the last two status bytes
