After see this code I think better that:

1.- Must be only one standard configuration no matter if print from gui or from command line
2.- Use yaml is simpler