JBIDE-14990 : check existing source validity

Signed-off-by: Fred Bricon <fbricon@gmail.com>