private SendableApnsPushNotification<SimpleApnsPushNotification> decodeNotificationFromFrame(final byte[] frame) throws ApnsDecoderException {
final ByteBuffer buffer = ByteBuffer.wrap(frame);
while (buffer.hasRemaining()) {
try {
final ApnsFrameItem item = ApnsFrameItem.getFrameItemFromCode(buffer.get());
final short itemLength = buffer.getShort();
switch (item) {
case DEVICE_TOKEN: {
if (this.token != null) {