protected final PartitionHelper createPartitionHelper(Context context) throws CommandException {
try {
return new PartitionHelper(device, new PrintWriter(context.getOut()));
} catch (DeviceNotFoundException e) {
throw new CommandException(e);
} catch (ApiNotFoundException e) {
throw new CommandException(e);
} catch (IOException e) {
throw new CommandException(e);
}
}