if(rOption.isSet()){
PageRotation[] rotations = ValidationUtility.getPagesRotation(rOption.getValue(), false);
if(rotations.length == 1){
parsedCommandDTO.setRotation(rotations[0]);
}else{
throw new RotateException(RotateException.ERR_NOT_SINGLE_ROTATION, new String[]{rOption.getValue()});
}
}
}else{
throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
}