Fix bug when the application contents a factory component: Test the source presence.
Fix tabulation.
Merge pull request #5 from SESA188919/master

Fix bug when the application contents a factory component.