private static List<SequenceAndController> getSequencesWithControllerType(
final VirtualMachineDefinition vmdef)
{
final List<SequenceAndController> sequences = new LinkedList<SequenceAndController>();
final SecondaryDisks secondaries = vmdef.getSecondaryDisks();
for (SecondaryDiskStandard standard : secondaries.getStandardDisks())
{
sequences.add(new SequenceAndController(standard.getSequence(), standard
.getDiskControllerType()));
}
for (SecondaryDiskStateful stateful : secondaries.getStatefulDisks())
{
sequences.add(new SequenceAndController(stateful.getSequence(), stateful
.getDiskControllerType()));
}