fixed #2233 - scripting made optional, if not available a warning is given to the log
Removed unused imports
Added missing return statement
Merge pull request #2308 from noctarius/javax-scripting-optional-osgi

fixed #2233 - scripting made optional, if not available a warning is giv...