if (g.getGenerate().isComments() != null) generator.setGenerateComments(g.getGenerate().isComments()); if (g.getGenerate().isCommentsOnAttributes() != null) generator.setGenerateCommentsOnAttributes(g.getGenerate().isCommentsOnAttributes()); if (g.getGenerate().isCommentsOnCatalogs() != null) generator.setGenerateCommentsOnCatalogs(g.getGenerate().isCommentsOnCatalogs());