Command command =
new Command(new Nexus("initiator", "target", 0, 0), cdb, TaskAttribute.SIMPLE, 0, 0);
InquiryDataRegistry inqreg = new StaticInquiryDataRegistry();
_logger.debug("Creating ModeSenseTask from MODE SENSE (6) command");
Task task = new ModeSenseTask(port, command, registry, inqreg);
_logger.debug("Running mode sense task");
task.run();
if (port.getLastStatus() != Status.GOOD)
{
throw new ModeSenseException(port.getLastStatus(), port.getSenseData());
}