// create and send response PDU
if (modePages != null) {
// create ModeParameterList
final ModeParameterListBuilder builder = new ModeParameterListBuilder(HeaderType.MODE_PARAMETER_HEADER_6);
builder.setLogicalBlockDescriptors(new ShortLogicalBlockDescriptor(session.getStorageModule().getSizeInBlocks(),// numberOfLogicalBlocks
VIRTUAL_BLOCK_SIZE));// logicalBlockLength
builder.setModePages(modePages);
ModeParameterList modeParameterList = ModeParameterList.build(builder);
// send response