BS-7589
Fix stacktrace, improve code quality
fix upperCase for widgetName

Conflicts:
	bundles/plugins/org.bonitasoft.studio.common/src/org/bonitasoft/studio/common/NamingUtils.java