question: public static NodeTask toNodeTask ( ByteBuffer bb ) { NodeTask nt = null ; if ( byteBufferNotEmpty ( bb ) ) { nt = new NodeTask ( getServiceResourceProfile ( bb ) , getConstraint ( bb ) ) ; nt . setHostname ( toString ( bb ) ) ; nt . setSlaveId ( toSlaveId ( bb ) ) ; nt . setTaskStatus ( toTaskStatus ( bb ) ) ; nt . setExecutorInfo ( toExecutorInfo ( bb ) ) ; nt . setTaskPrefix ( toString ( bb ) ) ; } return nt ; }
target:  ByteBuffer is expected to have a NodeTask at its next position.