Make sure to call sourceVersion.setValue and targetVersion.setValue from the values returned in JavaCompilerFacet