final long capacityInBytes, final String repository, final String sourcePath,
final String destinationDatastore, final String repositoryManagerAddress,
final DiskControllerType controllerType)
{
final DiskStandard disk = new DiskStandard();
disk.setFormat(format);
disk.setCapacityInBytes(capacityInBytes);
disk.setRepository(repository);
disk.setPath(sourcePath);
disk.setDestinationDatastore(destinationDatastore);
disk.setRepositoryManagerAddress(repositoryManagerAddress);
disk.setDiskControllerType(controllerType);
primaryDisk = new PrimaryDisk();
primaryDisk.setDiskStandard(disk);
// If repository is not present; it is an imported one
isImported = StringUtils.isBlank(disk.getRepository());
return this;
}